diff options
author | Ed Maste <emaste@FreeBSD.org> | 2012-08-29 21:38:34 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2012-08-29 21:38:34 +0000 |
commit | 42856668808f8772560f94d2473da4e62225acdd (patch) | |
tree | bb4f45bfa858f72fbd5ec61411c97b95ce00ba63 /bin/ps | |
parent | 9a6a13d687513a2e8624951deeb5b88512b8e61b (diff) |
Notes
Diffstat (limited to 'bin/ps')
-rw-r--r-- | bin/ps/ps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c index f507b6a028f36..ebabc1952fabd 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -889,8 +889,8 @@ add_list(struct listinfo *inf, const char *argp) int toolong; char elemcopy[PATH_MAX]; - if (*argp == 0) - inf->addelem(inf, elemcopy); + if (*argp == '\0') + inf->addelem(inf, argp); while (*argp != '\0') { while (*argp != '\0' && strchr(W_SEP, *argp) != NULL) argp++; |