chiark / gitweb /
logind: fix introspection typo
[elogind.git] / src / util.c
index 356b4f9de272d478b4fe0ae3dd7809872704b79c..a0fbdc517e7167a7f85cfe4ecccdfb9afa22175f 100644 (file)
@@ -3866,8 +3866,12 @@ char *normalize_env_assignment(const char *s) {
 }
 
 int wait_for_terminate(pid_t pid, siginfo_t *status) {
+        siginfo_t dummy;
+
         assert(pid >= 1);
-        assert(status);
+
+        if (!status)
+                status = &dummy;
 
         for (;;) {
                 zero(*status);