]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r261773
authorbrueffer <brueffer@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 25 Feb 2014 07:59:33 +0000 (07:59 +0000)
committerbrueffer <brueffer@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 25 Feb 2014 07:59:33 +0000 (07:59 +0000)
commit339aadd9a953c3dcf821fb223b76ed6c4cd02050
treeaa5d12e7fc19523e32dfe806953ec79263797824
parent2bda2c5941ccc52fdb452b324de0a0657ae866f7
MFC: r261773

In acline_init(), initialize ac_line to SRC_UNKNOWN.  Previously
this could lead to the -n option effectively being ignored (in case
ac_line happened to be 0 aka SRC_AC), or other undefined behaviour.

PR: 169779
Submitted by: Alex Gonzalez <loox at e-shell.com>
Reviewed by: jhb

git-svn-id: svn://svn.freebsd.org/base/stable/8@262476 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/powerd/powerd.c