Fix segfault when arg is uninitialized

This commit is contained in:
sin 2013-09-02 14:58:40 +01:00
parent 3406f87852
commit c14983072b
1 changed files with 1 additions and 1 deletions

View File

@ -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;