6773: an nsresult was being checked before it was initialized. Appv'd chofmann

This commit is contained in:
akkana%netscape.com 1999-05-20 01:48:12 +00:00
parent 190fb5c9b0
commit c25fa13fd9
2 changed files with 2 additions and 0 deletions

View File

@ -1203,6 +1203,7 @@ NS_IMETHODIMP nsEditor::CreateTxnForInsertText(const nsString & aStringToInsert,
if (aTextNode) {
nodeAsText = do_QueryInterface(aTextNode);
offset = 0;
result = NS_OK;
}
else
{

View File

@ -1203,6 +1203,7 @@ NS_IMETHODIMP nsEditor::CreateTxnForInsertText(const nsString & aStringToInsert,
if (aTextNode) {
nodeAsText = do_QueryInterface(aTextNode);
offset = 0;
result = NS_OK;
}
else
{