[systemd-commits] src/core

Harald Hoyer harald at kemper.freedesktop.org
Wed Apr 3 06:18:08 PDT 2013


 src/core/killall.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b6e8f1f03dc8b7579f8c6b00372f136d74c45232
Author: Harald Hoyer <harald at redhat.com>
Date:   Wed Apr 3 15:16:06 2013 +0200

    core/killall.c: prevent segfault and initialize pids

diff --git a/src/core/killall.c b/src/core/killall.c
index 7f0dbb9..e078012 100644
--- a/src/core/killall.c
+++ b/src/core/killall.c
@@ -189,7 +189,7 @@ static int killall(int sig, Set *pids) {
 
 void broadcast_signal(int sig, bool wait_for_exit) {
         sigset_t mask, oldmask;
-        Set *pids;
+        Set *pids = NULL;
 
         if (wait_for_exit)
                 pids = set_new(trivial_hash_func, trivial_compare_func);



More information about the systemd-commits mailing list