diff options
author | Harald Hoyer <harald@redhat.com> | 2013-04-03 15:16:06 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-04-03 15:17:51 +0200 |
commit | b6e8f1f03dc8b7579f8c6b00372f136d74c45232 (patch) | |
tree | d79cf48e21dc5d2d7ce8c582f45a9f1acb57d8dc /src | |
parent | 2bfc1edad87fbad005f79f9040af8efbbe1ca6a0 (diff) |
core/killall.c: prevent segfault and initialize pids
Diffstat (limited to 'src')
-rw-r--r-- | src/core/killall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/killall.c b/src/core/killall.c index 7f0dbb9edf..e078012c1b 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); |