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,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;
}