Date: Wed, 30 Dec 2015 14:57:43 +0000 (UTC) From: Steven Hartland <smh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r292947 - head/sbin/reboot Message-ID: <201512301457.tBUEvhIJ008479@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: smh Date: Wed Dec 30 14:57:42 2015 New Revision: 292947 URL: https://svnweb.freebsd.org/changeset/base/292947 Log: 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 Modified: head/sbin/reboot/reboot.c Modified: head/sbin/reboot/reboot.c ============================================================================== --- head/sbin/reboot/reboot.c Wed Dec 30 14:54:08 2015 (r292946) +++ head/sbin/reboot/reboot.c Wed Dec 30 14:57:42 2015 (r292947) @@ -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':
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512301457.tBUEvhIJ008479>