ryantimwilson / rpms / systemd

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