diff options
author | smh <smh@FreeBSD.org> | 2015-12-30 14:57:42 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2015-12-30 14:57:42 +0000 |
commit | 58f5ebe6c799b202d362f35351dd27efec212438 (patch) | |
tree | 746d4d64fc1c85375bd850efa48c0558b4c8acf6 /sbin | |
parent | 8646e68235beb11902d497ae1fe0fe4ee777fe11 (diff) | |
download | FreeBSD-src-58f5ebe6c799b202d362f35351dd27efec212438.zip FreeBSD-src-58f5ebe6c799b202d362f35351dd27efec212438.tar.gz |
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
Diffstat (limited to 'sbin')
-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 eaaa5b5..961ba41 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': |