Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2017 21:52:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 217022] [PATCH] To be using an uninitialized variable member of struct cpu_search at function cpu_search
Message-ID:  <bug-217022-8-0hQkwN7Hbf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-217022-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-217022-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217022

--- Comment #3 from Andriy Gapon <avg@FreeBSD.org> ---
(In reply to hisamitu from comment #2)
The code is not very readable, I admit that.  But I think that there is no
problem.  Please note that in both cases cs_load is accessed after '||'
operator.  lload and hload are initialized with such values that the left-h=
and
side of the operator is going to be true when the condition is evaluated for
the first time, so the right-hand side is not going to be evaluated.  After
that cs_load gets assigned and the next time the condition is evaluated the=
re
won't be any uninitialized values.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217022-8-0hQkwN7Hbf>