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
Родитель d9666a057f
Коммит 2580db3548
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;