diff --git a/content/xul/content/src/nsXULElement.cpp b/content/xul/content/src/nsXULElement.cpp index 2f2ca647dbb8..c46c56e45025 100644 --- a/content/xul/content/src/nsXULElement.cpp +++ b/content/xul/content/src/nsXULElement.cpp @@ -2686,11 +2686,10 @@ nsXULPrototypeElement::Deserialize(nsIObjectInputStream* aStream, const nsCOMArray *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;