]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r261773
authorbrueffer <brueffer@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 25 Feb 2014 07:55:03 +0000 (07:55 +0000)
committerbrueffer <brueffer@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 25 Feb 2014 07:55:03 +0000 (07:55 +0000)
commit36b80e0d6d7fdf5b16d58afb5ebe248fb4103dc7
tree905d124c0ef18d352696c5ab77e7937bc98333b8
parent13f8bd78a36daf16801b050ac71b84e169fc1ccb
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/10@262474 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/powerd/powerd.c