diff options
author | brucec <brucec@FreeBSD.org> | 2010-02-18 10:46:25 +0000 |
---|---|---|
committer | brucec <brucec@FreeBSD.org> | 2010-02-18 10:46:25 +0000 |
commit | 6f4a0062663f79b53bd11d21be49caf8291e0146 (patch) | |
tree | 0e38c7861c76fd785e190a5bb75691ff7df24e63 /usr.bin | |
parent | 76c304c57a75b8d3233cdd167c30672f87a1fdf9 (diff) | |
download | FreeBSD-src-6f4a0062663f79b53bd11d21be49caf8291e0146.zip FreeBSD-src-6f4a0062663f79b53bd11d21be49caf8291e0146.tar.gz |
MFC r203688:
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)
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/w/w.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index 10ec7b0..dbd41ff 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -158,7 +158,8 @@ main(int argc, char *argv[]) } dropgid = 0; - memf = nlistf = _PATH_DEVNULL; + memf = _PATH_DEVNULL; + nlistf = NULL; while ((ch = getopt(argc, argv, p)) != -1) switch (ch) { case 'd': |