Bug 744297 - initialize return value in nsXULPrototypeElement::Deserialize. r=bz
authorAndrew McCreight <amccreight@mozilla.com>
Wed, 11 Apr 2012 07:48:14 -0700
changeset 91432 c124fc77aab2226eccd05c002018eb75e7e8b02e
parent 91431 f097e8dcb6f21878b1c16a587a30467ba8407bcc
child 91433 2fcf9cbedd48f5303fd1d0d426390b9ebc9c25d7
push id672
push usertim.taubert@gmx.de
push dateFri, 13 Apr 2012 10:22:59 +0000
treeherderfx-team@cb2e81306595 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs744297
milestone14.0a1
Bug 744297 - initialize return value in nsXULPrototypeElement::Deserialize. r=bz
content/xul/content/src/nsXULElement.cpp
--- a/content/xul/content/src/nsXULElement.cpp
+++ b/content/xul/content/src/nsXULElement.cpp
@@ -2681,21 +2681,20 @@ nsXULPrototypeElement::Serialize(nsIObje
 
 nsresult
 nsXULPrototypeElement::Deserialize(nsIObjectInputStream* aStream,
                                    nsIScriptGlobalObject* aGlobal,
                                    nsIURI* aDocumentURI,
                                    const nsCOMArray<nsINodeInfo> *aNodeInfos)
 {
     NS_PRECONDITION(aNodeInfos, "missing nodeinfo array");
-    nsresult rv;
 
     // Read Node Info
     PRUint32 number;
-    rv |= aStream->Read32(&number);
+    nsresult rv = aStream->Read32(&number);
     mNodeInfo = aNodeInfos->SafeObjectAt(number);
     if (!mNodeInfo)
         return NS_ERROR_UNEXPECTED;
 
     // Read Attributes
     rv |= aStream->Read32(&number);
     mNumAttributes = PRInt32(number);