diff --git a/mozilla/editor/base/DeleteRangeTxn.cpp b/mozilla/editor/base/DeleteRangeTxn.cpp index 1e3299d1b69..213e80b2aa8 100644 --- a/mozilla/editor/base/DeleteRangeTxn.cpp +++ b/mozilla/editor/base/DeleteRangeTxn.cpp @@ -277,7 +277,7 @@ NS_IMETHODIMP DeleteRangeTxn::CreateTxnsToDeleteContent(nsIDOMNode *aParent, PRUint32 aOffset, nsIEditor::EDirection aAction) { - nsresult result; + nsresult result = NS_OK; // see what kind of node we have nsCOMPtr textNode; textNode = do_QueryInterface(aParent); diff --git a/mozilla/editor/libeditor/base/DeleteRangeTxn.cpp b/mozilla/editor/libeditor/base/DeleteRangeTxn.cpp index 1e3299d1b69..213e80b2aa8 100644 --- a/mozilla/editor/libeditor/base/DeleteRangeTxn.cpp +++ b/mozilla/editor/libeditor/base/DeleteRangeTxn.cpp @@ -277,7 +277,7 @@ NS_IMETHODIMP DeleteRangeTxn::CreateTxnsToDeleteContent(nsIDOMNode *aParent, PRUint32 aOffset, nsIEditor::EDirection aAction) { - nsresult result; + nsresult result = NS_OK; // see what kind of node we have nsCOMPtr textNode; textNode = do_QueryInterface(aParent);