ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
b7dd4d
From 32ef99e27ca6242cd86e06b7f63ba49562a77335 Mon Sep 17 00:00:00 2001
b7dd4d
From: Yu Watanabe <watanabe.yu+github@gmail.com>
b7dd4d
Date: Tue, 11 Sep 2018 12:56:06 +0900
b7dd4d
Subject: [PATCH] core: fix assert() about number of built environment
b7dd4d
 variables
b7dd4d
b7dd4d
Follow-up for 4b58153dd22172d817055d2a09a0cdf3f4bd9db3 and
b7dd4d
fd63e712b2025d235ce4bfbb512fada10e2690b5.
b7dd4d
b7dd4d
(cherry picked from commit 76a9460d44b03a86691a8481544f4525bb43610a)
b7dd4d
b7dd4d
Related: #2049788
b7dd4d
---
b7dd4d
 src/core/execute.c | 2 +-
b7dd4d
 1 file changed, 1 insertion(+), 1 deletion(-)
b7dd4d
b7dd4d
diff --git a/src/core/execute.c b/src/core/execute.c
b7dd4d
index a104294966..c842b14ce7 100644
b7dd4d
--- a/src/core/execute.c
b7dd4d
+++ b/src/core/execute.c
b7dd4d
@@ -1733,7 +1733,7 @@ static int build_environment(
b7dd4d
         }
b7dd4d
 
b7dd4d
         our_env[n_env++] = NULL;
b7dd4d
-        assert(n_env <= 12);
b7dd4d
+        assert(n_env <= 14);
b7dd4d
 
b7dd4d
         *ret = TAKE_PTR(our_env);
b7dd4d