summaryrefslogtreecommitdiff
path: root/src/core/killall.c
diff options
context:
space:
mode:
authorSimon Peeters <peeters.simon@gmail.com>2014-01-04 02:35:23 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-01-05 00:59:13 -0500
commitb68fa010f72599e6da5822feda5ae3a47a4e63d8 (patch)
tree046694049da4187b5a8bbe85d4bca92960f2fa3e /src/core/killall.c
parent9dddaedfcc70c6dc37ba6a48d1d8e27e12c0cb2e (diff)
shared: procfs_file_alloca: handle pid==0
when pid is set to 0 use /proc/self
Diffstat (limited to 'src/core/killall.c')
-rw-r--r--src/core/killall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/killall.c b/src/core/killall.c
index 7664775142..57ed41c5af 100644
--- a/src/core/killall.c
+++ b/src/core/killall.c
@@ -33,7 +33,8 @@
static bool ignore_proc(pid_t pid) {
_cleanup_fclose_ FILE *f = NULL;
- char c, *p;
+ char c;
+ const char *p;
size_t count;
uid_t uid;
int r;