Closed Bug 581474 Opened 11 years ago Closed 10 years ago
possible uninitialized variable use in ns
XPCWrapped JS::Get New Or Used
js/src/xpconnect/src/xpcwrappedjs.cpp: In static member function ‘static nsresult nsXPCWrappedJS::GetNewOrUsed(XPCCallContext&, JSObject*, const nsIID&, nsISupports*, nsXPCWrappedJS**)’: js/src/xpconnect/src/xpcwrappedjs.cpp:307: warning: ‘root’ may be used uninitialized in this function
Please note I have not tested this patch. Will do the testing once my unix box build is complete.
Assignee: nobody → atulagrwl
Status: NEW → ASSIGNED
Attachment #557288 - Flags: review?(mrbkap)
Comment on attachment 557288 [details] [diff] [review] Patch v1 to fix warning I look forward to days when GCC actually gets its control flow graph to a point where it doesn't give false positives like this.
Attachment #557288 - Flags: review?(mrbkap) → review+
In my queue :-)
Target Milestone: --- → mozilla9
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.