Bug 620423 - nsHTMLEditor::ParseCFHTML foolishly checks aStuffToPaste instead of *aStuffToPaste; r=neil a=roc

This commit is contained in:
2011-01-11 10:20:31 -05:00
parent c4dc3dfbca
commit 6577f6eca4

View File

@@ -1264,7 +1264,7 @@ nsHTMLEditor::ParseCFHTML(nsCString & aCfhtml, PRUnichar **aStuffToPaste, PRUnic
nsLinebreakConverter::eLinebreakAny,
nsLinebreakConverter::eLinebreakContent,
oldLengthInChars, &newLengthInChars);
if (!aStuffToPaste)
if (!*aStuffToPaste)
{
return NS_ERROR_FAILURE;
}