Avoid uninitialized variables
This commit is contained in:
@@ -856,6 +856,7 @@ long MainWindow::DoSearch(void)
|
|||||||
previous_poem_start = -1;
|
previous_poem_start = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buf[0] = 0;
|
||||||
if (data_filename)
|
if (data_filename)
|
||||||
wxSprintf(buf, wxT("%s.dat"), data_filename);
|
wxSprintf(buf, wxT("%s.dat"), data_filename);
|
||||||
|
|
||||||
@@ -942,6 +943,7 @@ bool Compile(void)
|
|||||||
int ch;
|
int ch;
|
||||||
wxChar buf[100];
|
wxChar buf[100];
|
||||||
|
|
||||||
|
buf[0] = 0;
|
||||||
if (data_filename)
|
if (data_filename)
|
||||||
wxSprintf(buf, wxT("%s.dat"), data_filename);
|
wxSprintf(buf, wxT("%s.dat"), data_filename);
|
||||||
|
|
||||||
@@ -974,6 +976,7 @@ bool Compile(void)
|
|||||||
} while (ch != EOF);
|
} while (ch != EOF);
|
||||||
fclose(file);
|
fclose(file);
|
||||||
|
|
||||||
|
buf[0] = 0;
|
||||||
if (index_filename)
|
if (index_filename)
|
||||||
wxSprintf(buf, wxT("%s.idx"), index_filename);
|
wxSprintf(buf, wxT("%s.idx"), index_filename);
|
||||||
|
|
||||||
|
@@ -142,7 +142,7 @@ void wxCursor::InitFromStock( wxStockCursor cursorId )
|
|||||||
*/
|
*/
|
||||||
default:
|
default:
|
||||||
wxFAIL_MSG(wxT("unsupported cursor type"));
|
wxFAIL_MSG(wxT("unsupported cursor type"));
|
||||||
// will use the standard one
|
qt_cur = Qt::ArrowCursor;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user