summaryrefslogtreecommitdiffstats
path: root/bin/ps
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ps')
-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 904a430..0667db9 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':
OpenPOWER on IntegriCloud