mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 506645 nsTypedSelection::AddItem doesn't always null check aOutIndex
r=smaug
This commit is contained in:
parent
9206ce3751
commit
854b7b365e
@ -3741,7 +3741,8 @@ nsTypedSelection::AddItem(nsIRange *aItem, PRInt32 *aOutIndex)
|
||||
aItem->GetEndParent(),
|
||||
aItem->EndOffset(), startIndex);
|
||||
if (sameRange) {
|
||||
*aOutIndex = startIndex;
|
||||
if (aOutIndex)
|
||||
*aOutIndex = startIndex;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user