Bug 744297 - initialize return value in nsXULPrototypeElement::Deserialize. r=bz

This commit is contained in:
Andrew McCreight 2012-04-11 07:48:14 -07:00
parent 6f8a4be587
commit 6acb272d26

View File

@ -2686,11 +2686,10 @@ nsXULPrototypeElement::Deserialize(nsIObjectInputStream* aStream,
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;