Bug 1188234, part 1 - Initialize |number|. r=smaug

If the first Read32() fails, |number| will be garbage.
This commit is contained in:
Andrew McCreight 2015-08-04 13:06:14 -07:00
parent 33b6fd3082
commit 449603d586

View File

@ -2305,7 +2305,7 @@ nsXULPrototypeElement::Deserialize(nsIObjectInputStream* aStream,
NS_PRECONDITION(aNodeInfos, "missing nodeinfo array");
// Read Node Info
uint32_t number;
uint32_t number = 0;
nsresult rv = aStream->Read32(&number);
mNodeInfo = aNodeInfos->ElementAt(number);
if (!mNodeInfo)