diff --git a/content/html/content/src/nsTextEditorState.cpp b/content/html/content/src/nsTextEditorState.cpp index 971b5a5b844c..0e4ac3b94215 100644 --- a/content/html/content/src/nsTextEditorState.cpp +++ b/content/html/content/src/nsTextEditorState.cpp @@ -1170,7 +1170,7 @@ nsTextEditorState::PrepareEditor(const nsAString *aValue) bool shouldInitializeEditor = false; nsCOMPtr newEditor; // the editor that we might create - nsresult rv; + nsresult rv = NS_OK; if (!mEditor) { shouldInitializeEditor = true;