]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: fix assert() about number of built environment variables
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 11 Sep 2018 03:56:06 +0000 (12:56 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 13 Sep 2018 08:02:58 +0000 (17:02 +0900)
Follow-up for 4b58153dd22172d817055d2a09a0cdf3f4bd9db3 and
fd63e712b2025d235ce4bfbb512fada10e2690b5.

src/core/execute.c

index 501b367eae9e3697ecef2b60007b337821d8b6b0..5a460b1678cfee0fbfd7d78d9a3257ad0cff389b 100644 (file)
@@ -1728,7 +1728,7 @@ static int build_environment(
         }
 
         our_env[n_env++] = NULL;
-        assert(n_env <= 12);
+        assert(n_env <= 14);
 
         *ret = TAKE_PTR(our_env);