Closed
Bug 1157664
Opened 8 years ago
Closed 8 years ago
Uninitialized member mozilla::layers::FPSCounter::mIteratorIndex in constructor
Categories
(Core :: Graphics: Layers, defect)
Core
Graphics: Layers
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: nical, Assigned: mathieu.blot, Mentored)
Details
Attachments
(1 file, 1 obsolete file)
796 bytes,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
This is benign but adds to the coverity warning noise, so let's fix it.
Assignee | ||
Comment 1•8 years ago
|
||
Hello, I would like to work on that bug, please.
Reporter | ||
Updated•8 years ago
|
Assignee: nobody → mathieu.blot
Assignee | ||
Comment 2•8 years ago
|
||
Do FPSCounter::mIteratorIndex need to be initialized to a specific value ?
Flags: needinfo?(nical.bugzilla)
Reporter | ||
Comment 3•8 years ago
|
||
(In reply to mathieu.blot from comment #2) > Do FPSCounter::mIteratorIndex need to be initialized to a specific value ? -1 will do. It's an invalid value so it will trigger assertions if we ever forget to initialize mIteratorIndex when starting to iterate.
Flags: needinfo?(nical.bugzilla)
Assignee | ||
Comment 4•8 years ago
|
||
Attachment #8607571 -
Flags: review?(nical.bugzilla)
Reporter | ||
Comment 5•8 years ago
|
||
Comment on attachment 8607571 [details] [diff] [review] Build successful Review of attachment 8607571 [details] [diff] [review]: ----------------------------------------------------------------- Move that up one line and you'll have the r+ :) ::: gfx/layers/composite/FPSCounter.cpp @@ +29,5 @@ > > FPSCounter::FPSCounter(const char* aName) > : mWriteIndex(0) > , mFPSName(aName) > + , mIteratorIndex(-1) Please initialize members in the same order they are declared (mIterator comes before mFPSName).
Attachment #8607571 -
Flags: review?(nical.bugzilla) → review-
Assignee | ||
Comment 6•8 years ago
|
||
Initializations in the same order as the definition of the members.
Attachment #8607571 -
Attachment is obsolete: true
Attachment #8607637 -
Flags: review?(nical.bugzilla)
Reporter | ||
Updated•8 years ago
|
Attachment #8607637 -
Flags: review?(nical.bugzilla) → review+
Updated•8 years ago
|
Keywords: checkin-needed
Comment 7•8 years ago
|
||
can we get a try run for this ?
Flags: needinfo?(mathieu.blot)
Keywords: checkin-needed
Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(mathieu.blot)
Keywords: coverity → checkin-needed
![]() |
||
Comment 10•8 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8964d03d9599
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•