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)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a5

People

(Reporter: RyanVM, Assigned: Mardak)

References

Details

Attachments

(1 file, 1 obsolete file)

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
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!
Attached patch v1 (obsolete) — Splinter Review
I moved the nsresult rv to also be assigned on the same line.
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Attachment #439467 - Flags: feedback?(edilee)
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+
Attached patch v1.1Splinter Review
Attachment #439467 - Attachment is obsolete: true
Keywords: checkin-needed
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.

Attachment

General

Creator:
Created:
Updated:
Size: