summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorbrucec <brucec@FreeBSD.org>2010-02-18 10:46:25 +0000
committerbrucec <brucec@FreeBSD.org>2010-02-18 10:46:25 +0000
commit6f4a0062663f79b53bd11d21be49caf8291e0146 (patch)
tree0e38c7861c76fd785e190a5bb75691ff7df24e63 /usr.bin
parent76c304c57a75b8d3233cdd167c30672f87a1fdf9 (diff)
downloadFreeBSD-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.c3
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':
OpenPOWER on IntegriCloud