]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC: r261773
authorbrueffer <brueffer@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 25 Feb 2014 07:57:17 +0000 (07:57 +0000)
committerbrueffer <brueffer@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 25 Feb 2014 07:57:17 +0000 (07:57 +0000)
commita7c1b8dc5a7e916c673676f034687b2993a840e5
treee1e0dcaa48ced9f8cf23caee96cfb6b58cf491c8
parent493dcd57c270eb969d4f854cbe3a49f38d0a56ae
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/9@262475 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/powerd/powerd.c