diff --git a/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp b/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
index c160de6f9ce..07a80d27ba0 100644
--- a/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
+++ b/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
@@ -1629,7 +1629,7 @@ nsHTMLEditor::InsertTextWithQuotations(const nsAString &aStringToInsert)
#endif /* DEBUG */
// Loop over lines:
- nsresult rv;
+ nsresult rv = NS_OK;
nsAString::const_iterator lineStart (hunkStart);
while (lineStart != strEnd)
{