diff options
author | Steven Hartland <smh@FreeBSD.org> | 2015-12-30 14:57:42 +0000 |
---|---|---|
committer | Steven Hartland <smh@FreeBSD.org> | 2015-12-30 14:57:42 +0000 |
commit | 0f79b5d72bea3b4e800e3f67bee6a06f4e94dea5 (patch) | |
tree | 746d4d64fc1c85375bd850efa48c0558b4c8acf6 /sbin/reboot | |
parent | 4f18ce8ae06095ab41bf010ccd01957a161ece9e (diff) | |
download | src-0f79b5d72bea3b4e800e3f67bee6a06f4e94dea5.tar.gz src-0f79b5d72bea3b4e800e3f67bee6a06f4e94dea5.zip |
Fix use of uninitialised Nflag
Initialise Nflag to 0 preventing use of uninitialised value.
Reported by: uqs
MFC after: 1 week
X-MFC-With: r292266
Sponsored by: Multiplay
Differential Revision: https://reviews.freebsd.org/D4449
Notes
Notes:
svn path=/head/; revision=292947
Diffstat (limited to 'sbin/reboot')
-rw-r--r-- | sbin/reboot/reboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index eaaa5b55a96a..961ba419556b 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -76,7 +76,7 @@ main(int argc, char *argv[]) howto = RB_HALT; } else howto = 0; - lflag = nflag = qflag = 0; + lflag = nflag = qflag = Nflag = 0; while ((ch = getopt(argc, argv, "dk:lNnpqr")) != -1) switch(ch) { case 'd': |