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:
parent
2bfc1edad8
commit
b6e8f1f03d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user