1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

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

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