mirror of git://git.suckless.org/sbase
Fix segfault when arg is uninitialized
This commit is contained in:
parent
3406f87852
commit
c14983072b
2
pidof.c
2
pidof.c
|
@ -27,7 +27,7 @@ main(int argc, char *argv[])
|
||||||
struct dirent *entry;
|
struct dirent *entry;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
struct procstat ps;
|
struct procstat ps;
|
||||||
char cmdline[BUFSIZ], *cmd, *p, *arg;
|
char cmdline[BUFSIZ], *cmd, *p, *arg = NULL;
|
||||||
int i, found = 0;
|
int i, found = 0;
|
||||||
int sflag = 0, oflag = 0;
|
int sflag = 0, oflag = 0;
|
||||||
struct omit *onode, *tmp;
|
struct omit *onode, *tmp;
|
||||||
|
|
Loading…
Reference in New Issue