Last Comment Bug 581477 - possible uninitialized variable use in xpcwrappednativeproto.cpp
: possible uninitialized variable use in xpcwrappednativeproto.cpp
Status: RESOLVED FIXED
[build_warning]
:
Product: Core
Classification: Components
Component: XPConnect (show other bugs)
: Trunk
: x86 Linux
: -- normal (vote)
: mozilla9
Assigned To: Atul Aggarwal
:
Mentors:
Depends on:
Blocks: buildwarning
  Show dependency treegraph
 
Reported: 2010-07-23 10:00 PDT by Josh Matthews [:jdm]
Modified: 2011-09-26 07:42 PDT (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Patch v1 to fix warning (1.01 KB, patch)
2011-08-31 13:29 PDT, Atul Aggarwal
benjamin: review+
Details | Diff | Review

Description Josh Matthews [:jdm] 2010-07-23 10:00:40 PDT
js/src/xpconnect/src/xpcwrappednativeproto.cpp:218: warning: ‘map’ may be used uninitialized in this function
js/src/xpconnect/src/xpcwrappednativeproto.cpp:219: warning: ‘lock’ may be used uninitialized in this function
Comment 1 Atul Aggarwal 2011-08-31 13:29:33 PDT
Created attachment 557295 [details] [diff] [review]
Patch v1 to fix warning

It is false warning but it never hurts to assign null to pointers.

Note, I could not test this patch.
Comment 3 :Ehsan Akhgari (busy, don't ask for review please) 2011-09-26 07:42:55 PDT
https://hg.mozilla.org/mozilla-central/rev/0694b11060ae

Note You need to log in before you can comment on or make changes to this bug.