Closed
Bug 559695
Opened 14 years ago
Closed 14 years ago
warning C4700: uninitialized local variable 'rv' used in nsStorageFormHistory.cpp
Categories
(Toolkit :: Form Manager, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a5
People
(Reporter: RyanVM, Assigned: Mardak)
References
Details
Attachments
(1 file, 1 obsolete file)
4.25 KB,
patch
|
Details | Diff | Splinter Review |
toolkit\components\satchel\src\nsstorageformhistory.cpp(1141) : warning C4700: uninitialized local variable 'rv' used toolkit\components\satchel\src\nsstorageformhistory.cpp(1080) : warning C4700: uninitialized local variable 'rv' used This code was added by bug 487556. http://hg.mozilla.org/mozilla-central/rev/aa8d539cf6e1
Assignee | ||
Comment 1•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/file/default/toolkit/components/satchel/src/nsStorageFormHistory.cpp#l1080 http://hg.mozilla.org/mozilla-central/file/default/toolkit/components/satchel/src/nsStorageFormHistory.cpp#l1141 Both should probably just return NS_ERROR_OUT_OF_MEMORY; ?
Comment 2•14 years ago
|
||
Yeah. Could also use the two-arg version of do_CreateInstance, but given the callers before that don't, and the unlikelihood of failure, better to just hard code the return value there and move down "rv"'s declaration - r=me!
Assignee | ||
Comment 3•14 years ago
|
||
I moved the nsresult rv to also be assigned on the same line.
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Assignee | ||
Updated•14 years ago
|
Attachment #439467 -
Flags: feedback?(edilee)
Comment 4•14 years ago
|
||
Comment on attachment 439467 [details] [diff] [review] v1 I think maybe you didn't intend to request feedback from yourself? You can have an r=me :) (wouldn't hurt to make the same declaration-moving change to the other nsFormHistory::SendNotification, too)
Attachment #439467 -
Flags: feedback?(edilee) → review+
Assignee | ||
Comment 5•14 years ago
|
||
Attachment #439467 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 6•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/7192f4dba530
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a5
You need to log in
before you can comment on or make changes to this bug.
Description
•