chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bfc1ed
)
core/killall.c: prevent segfault and initialize pids
author
Harald Hoyer
<harald@redhat.com>
Wed, 3 Apr 2013 13:16:06 +0000
(15:16 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 3 Apr 2013 13:17:51 +0000
(15:17 +0200)
src/core/killall.c
patch
|
blob
|
history
diff --git
a/src/core/killall.c
b/src/core/killall.c
index 7f0dbb9edf0823ccd0eb699e5dc44760bff4ac32..e078012c1b9cc7d3ef9da23d30b6fea12e395075 100644
(file)
--- 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);