summaryrefslogtreecommitdiffstats
path: root/usr.bin/w/w.c
diff options
context:
space:
mode:
authorbrucec <brucec@FreeBSD.org>2010-02-08 21:23:48 +0000
committerbrucec <brucec@FreeBSD.org>2010-02-08 21:23:48 +0000
commita955ef657cbab406b88987e44fa2f14526782fb4 (patch)
treebdbafae76297f4a7d854718d62edf7adc0cfeb15 /usr.bin/w/w.c
parent4601e94326c9fcba07f2d52e88860443d02bc8b9 (diff)
downloadFreeBSD-src-a955ef657cbab406b88987e44fa2f14526782fb4.zip
FreeBSD-src-a955ef657cbab406b88987e44fa2f14526782fb4.tar.gz
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
Diffstat (limited to 'usr.bin/w/w.c')
-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 0612cd8..fb97e8a 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