Bug 581477 - Silence uninitialized variable warnings in xpcwrappednativeproto.cpp; r=bsmedberg
authorAtul Aggarwal <atulagrwl@gmail.com>
Thu, 01 Sep 2011 01:56:33 +0530
changeset 77543 0694b11060ae0bb4a8cd56c0028d51bb0e955ee3
parent 77542 3c6a26f33adfcd58adc9a6e3bb39f44f3f1be195
child 77544 22ae18b4d0131d97c6fc1e47e769752b3b60ac03
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersbsmedberg
bugs581477
milestone9.0a1
Bug 581477 - Silence uninitialized variable warnings in xpcwrappednativeproto.cpp; r=bsmedberg
js/src/xpconnect/src/xpcwrappednativeproto.cpp
--- a/js/src/xpconnect/src/xpcwrappednativeproto.cpp
+++ b/js/src/xpconnect/src/xpcwrappednativeproto.cpp
@@ -210,18 +210,18 @@ XPCWrappedNativeProto::GetNewOrUsed(XPCC
                                     JSBool ForceNoSharing,
                                     JSBool isGlobal,
                                     QITableEntry* offsets)
 {
     NS_ASSERTION(Scope, "bad param");
     NS_ASSERTION(ClassInfo, "bad param");
 
     AutoMarkingWrappedNativeProtoPtr proto(ccx);
-    ClassInfo2WrappedNativeProtoMap* map;
-    XPCLock* lock;
+    ClassInfo2WrappedNativeProtoMap* map = nsnull;
+    XPCLock* lock = nsnull;
     JSBool shared;
 
     JSUint32 ciFlags;
     if(NS_FAILED(ClassInfo->GetFlags(&ciFlags)))
         ciFlags = 0;
 
     if(ciFlags & XPC_PROTO_DONT_SHARE)
     {