naccyde / rpms / systemd

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