richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
62b301
From 09b6ae4da2d8b60d3619dcd0e6712e1a106efba0 Mon Sep 17 00:00:00 2001
62b301
From: Yu Watanabe <watanabe.yu+github@gmail.com>
62b301
Date: Tue, 11 Sep 2018 13:18:33 +0900
62b301
Subject: [PATCH] core: add one more assert()
62b301
62b301
(cherry picked from commit 7c1cb6f1989074e144b1625607950fce80c951ec)
62b301
62b301
Related: #2049788
62b301
---
62b301
 src/core/execute.c | 1 +
62b301
 1 file changed, 1 insertion(+)
62b301
62b301
diff --git a/src/core/execute.c b/src/core/execute.c
62b301
index c842b14ce7..3ff1a51aa1 100644
62b301
--- a/src/core/execute.c
62b301
+++ b/src/core/execute.c
62b301
@@ -1624,6 +1624,7 @@ static int build_environment(
62b301
 
62b301
         assert(u);
62b301
         assert(c);
62b301
+        assert(p);
62b301
         assert(ret);
62b301
 
62b301
         our_env = new0(char*, 14);