aboutsummaryrefslogtreecommitdiff
path: root/bin/ps/ps.c
diff options
context:
space:
mode:
authorRebecca Cran <brucec@FreeBSD.org>2010-02-08 21:23:48 +0000
committerRebecca Cran <brucec@FreeBSD.org>2010-02-08 21:23:48 +0000
commitc08dcaf147c68bdc4817123998ac369a275403a0 (patch)
treebdbafae76297f4a7d854718d62edf7adc0cfeb15 /bin/ps/ps.c
parent891acefe7c3953f0dee36ff6024024c4e9d4a680 (diff)
downloadsrc-c08dcaf147c68bdc4817123998ac369a275403a0.tar.gz
src-c08dcaf147c68bdc4817123998ac369a275403a0.zip
Initialize the execfile argument to NULL instead of _PATH_DEVNULL. This allows the -M option to be used without specifying -N.
PR: bin/138146 Approved by: rrs (mentor) MFC after: 3 days
Notes
Notes: svn path=/head/; revision=203688
Diffstat (limited to 'bin/ps/ps.c')
-rw-r--r--bin/ps/ps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
index 904a430c1af5..0667db9b5c40 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -212,7 +212,8 @@ main(int argc, char *argv[])
init_list(&sesslist, addelem_pid, sizeof(pid_t), "session id");
init_list(&ttylist, addelem_tty, sizeof(dev_t), "tty");
init_list(&uidlist, addelem_uid, sizeof(uid_t), "user");
- memf = nlistf = _PATH_DEVNULL;
+ memf = _PATH_DEVNULL;
+ nlistf = NULL;
while ((ch = getopt(argc, argv, PS_ARGS)) != -1)
switch (ch) {
case 'A':