Bug 336091 - Initialize the out parameters of nsEditor::GetStartNodeAndOffset correctly; r,a=roc

--HG--
extra : rebase_source : 7ae5b960263f2412c21b0cbcebf6f95a4ddb2e73
This commit is contained in:
Ehsan Akhgari 2011-02-09 14:07:56 -05:00
parent 981256b0b6
commit 9bd0f72c58

View File

@ -3883,8 +3883,7 @@ nsEditor::GetStartNodeAndOffset(nsISelection *aSelection,
NS_ENSURE_TRUE(outStartNode && outStartOffset && aSelection, NS_ERROR_NULL_POINTER);
*outStartNode = nsnull;
// brade: set outStartNode to null or ?
*outStartOffset = 0;
nsCOMPtr<nsISelectionPrivate>selPrivate(do_QueryInterface(aSelection));
nsCOMPtr<nsIEnumerator> enumerator;