Page MenuHomeFreeBSD

Fix use of an uninitialized variable.
ClosedPublic

Authored by jhb on Jan 26 2020, 2:27 PM.
Tags
None
Referenced Files
F173503631: D23368.diff
Sat, Sep 26, 10:26 AM
Unknown Object (File)
Wed, Sep 23, 1:58 AM
Unknown Object (File)
Tue, Sep 15, 3:15 PM
Unknown Object (File)
Tue, Sep 15, 12:26 AM
Unknown Object (File)
Mon, Sep 14, 12:20 PM
Unknown Object (File)
Mon, Sep 14, 9:53 AM
Unknown Object (File)
Sun, Sep 13, 11:42 AM
Unknown Object (File)
Sat, Sep 5, 10:38 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.