Closed Bug 1289792 Opened 4 years ago Closed 4 years ago

[Static Analysis][Uninitialized scalar field] In constructor DispatchWheelInputOnControllerThread

Categories

(Core :: Widget, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: andi, Assigned: andi)

References

(Blocks 1 open bug)

Details

(Keywords: coverity, Whiteboard: CID 1364450)

Attachments

(1 file)

The Static Analysis tool Coverity detected that |mAPZResult| is not initialised in the constructor. But looking over the code i think we can remove this member variable and just use a local variable since it's not used in any other function nor it's passed as a reference nor pointer to DispatchWheelEventOnMainThread.
Pushed by bpostelnicu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/99cc6fc1ed3f
removed member variable mAPZResult and used a local one in Run(). r=vlad
https://hg.mozilla.org/mozilla-central/rev/99cc6fc1ed3f
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in before you can comment on or make changes to this bug.