core/killall.c: prevent segfault and initialize pids

This commit is contained in:
Harald Hoyer 2013-04-03 15:16:06 +02:00
parent 2bfc1edad8
commit b6e8f1f03d
1 changed files with 1 additions and 1 deletions

View File

@ -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);