Bug 581474 - Possible uninitialized variable use in nsXPCWrappedJS::GetNewOrUsed; r=mrbkap
authorAtul Aggarwal <atulagrwl@gmail.com>
Mon, 05 Sep 2011 10:29:06 +0100
changeset 76551 b435b37b32c76764fe43a3090d6c2b087be35fd6
parent 76549 42acb339d8ef5a4b8f7cedb7c1ca4e5fcf7b59bd
child 76552 1a9a2270cc4743e015d33ea0270aecc19a12897b
push id21119
push usereakhgari@mozilla.com
push dateMon, 05 Sep 2011 18:35:38 +0000
treeherdermozilla-central@d2c6783fa715 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs581474
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 581474 - Possible uninitialized variable use in nsXPCWrappedJS::GetNewOrUsed; r=mrbkap
js/src/xpconnect/src/xpcwrappedjs.cpp
--- a/js/src/xpconnect/src/xpcwrappedjs.cpp
+++ b/js/src/xpconnect/src/xpcwrappedjs.cpp
@@ -276,17 +276,17 @@ nsresult
 nsXPCWrappedJS::GetNewOrUsed(XPCCallContext& ccx,
                              JSObject* aJSObj,
                              REFNSIID aIID,
                              nsISupports* aOuter,
                              nsXPCWrappedJS** wrapperResult)
 {
     JSObject2WrappedJSMap* map;
     JSObject* rootJSObj;
-    nsXPCWrappedJS* root;
+    nsXPCWrappedJS* root = nsnull;
     nsXPCWrappedJS* wrapper = nsnull;
     nsXPCWrappedJSClass* clazz = nsnull;
     XPCJSRuntime* rt = ccx.GetRuntime();
     JSBool release_root = JS_FALSE;
 
     map = rt->GetWrappedJSMap();
     if(!map)
     {