Bug 712510 - Initialize the return value in the extremely odd case where it's never assigned to before returning; r=roc

This commit is contained in:
Ehsan Akhgari 2012-01-03 19:28:45 -05:00
parent f7b2a8b9f1
commit 418e53bb8b

View File

@ -1170,7 +1170,7 @@ nsTextEditorState::PrepareEditor(const nsAString *aValue)
bool shouldInitializeEditor = false;
nsCOMPtr<nsIEditor> newEditor; // the editor that we might create
nsresult rv;
nsresult rv = NS_OK;
if (!mEditor) {
shouldInitializeEditor = true;