Bug 506645 nsTypedSelection::AddItem doesn't always null check aOutIndex

r=smaug
This commit is contained in:
timeless@mozdev.org 2009-08-12 11:49:55 +02:00
parent 9206ce3751
commit 854b7b365e

View File

@ -3741,6 +3741,7 @@ nsTypedSelection::AddItem(nsIRange *aItem, PRInt32 *aOutIndex)
aItem->GetEndParent(), aItem->GetEndParent(),
aItem->EndOffset(), startIndex); aItem->EndOffset(), startIndex);
if (sameRange) { if (sameRange) {
if (aOutIndex)
*aOutIndex = startIndex; *aOutIndex = startIndex;
return NS_OK; return NS_OK;
} }