[Bug 217022] [PATCH] To be using an uninitialized variable member of struct cpu_search at function cpu_search
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Feb 13 21:52:38 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217022
--- Comment #3 from Andriy Gapon <avg at 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-hand
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 there
won't be any uninitialized values.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list