Page MenuHomeFreeBSD

Fix use of an uninitialized variable.
ClosedPublic

Authored by jhb on Jan 26 2020, 2:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 23, 12:36 AM
Unknown Object (File)
Fri, Oct 3, 4:28 PM
Unknown Object (File)
Sep 25 2025, 7:51 AM
Unknown Object (File)
Sep 18 2025, 2:55 AM
Unknown Object (File)
Sep 14 2025, 1:28 AM
Unknown Object (File)
Aug 9 2025, 3:32 AM
Unknown Object (File)
Jul 31 2025, 2:25 AM
Unknown Object (File)
Jul 24 2025, 1:59 AM
Subscribers

Details

Summary

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

Test Plan
  • one less build failure in LINT with gcc9

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28924
Build 26914: arc lint + arc unit

Event Timeline

Now that makes more sense.

This revision is now accepted and ready to land.Jan 26 2020, 5:25 PM
This revision was automatically updated to reflect the committed changes.