ubase

suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit c14983072b2c17d1b5d12e7aeb3c39bc9080823e
parent 3406f87852dc5104e2f955a036c0775978faab3c
Author: sin <sin@2f30.org>
Date:   Mon,  2 Sep 2013 14:58:40 +0100

Fix segfault when arg is uninitialized

Diffstat:
Mpidof.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pidof.c b/pidof.c @@ -27,7 +27,7 @@ main(int argc, char *argv[]) struct dirent *entry; pid_t pid; struct procstat ps; - char cmdline[BUFSIZ], *cmd, *p, *arg; + char cmdline[BUFSIZ], *cmd, *p, *arg = NULL; int i, found = 0; int sflag = 0, oflag = 0; struct omit *onode, *tmp;