mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1188234, part 1 - Initialize |number|. r=smaug
If the first Read32() fails, |number| will be garbage.
This commit is contained in:
parent
33b6fd3082
commit
449603d586
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user