]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix use of an uninitialized variable.
authorjhb <jhb@FreeBSD.org>
Thu, 30 Jan 2020 18:28:02 +0000 (18:28 +0000)
committerjhb <jhb@FreeBSD.org>
Thu, 30 Jan 2020 18:28:02 +0000 (18:28 +0000)
commitc086b36c6c0c595b346bb33c91e705456678bf10
tree4eeecb1dff7b0fa5ff03382fefac022aa47fb171
parent81656a75b3105273702e5e5c58bb8f3a8a824538
Fix use of an uninitialized variable.

ctx (and thus ctx.flags) is stack garbage at the start of this
function, so initialize ctx.flags to an explicit value instead of
using binary operations on the garbage.

Reported by: gcc9
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D23368
sys/kern/subr_stats.c