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)
Jan 21 2024, 1:48 AM
Unknown Object (File)
Jan 1 2024, 4:45 AM
Unknown Object (File)
Dec 23 2023, 7:21 AM
Unknown Object (File)
Dec 20 2023, 4:05 AM
Unknown Object (File)
Dec 13 2023, 9:03 AM
Unknown Object (File)
Aug 29 2023, 1:10 PM
Unknown Object (File)
Aug 27 2023, 2:34 PM
Unknown Object (File)
Aug 24 2023, 12:00 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 Not Applicable
Unit
Tests Not Applicable

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.