From b68fa010f72599e6da5822feda5ae3a47a4e63d8 Mon Sep 17 00:00:00 2001 From: Simon Peeters Date: Sat, 4 Jan 2014 02:35:23 +0100 Subject: shared: procfs_file_alloca: handle pid==0 when pid is set to 0 use /proc/self --- src/core/killall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core') 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; -- cgit v1.2.3-54-g00ecf