diff --git a/demos/poem/wxpoem.cpp b/demos/poem/wxpoem.cpp index 9f24e2566a..f75ec1c397 100644 --- a/demos/poem/wxpoem.cpp +++ b/demos/poem/wxpoem.cpp @@ -856,6 +856,7 @@ long MainWindow::DoSearch(void) previous_poem_start = -1; } + buf[0] = 0; if (data_filename) wxSprintf(buf, wxT("%s.dat"), data_filename); @@ -942,6 +943,7 @@ bool Compile(void) int ch; wxChar buf[100]; + buf[0] = 0; if (data_filename) wxSprintf(buf, wxT("%s.dat"), data_filename); @@ -974,6 +976,7 @@ bool Compile(void) } while (ch != EOF); fclose(file); + buf[0] = 0; if (index_filename) wxSprintf(buf, wxT("%s.idx"), index_filename); diff --git a/src/qt/cursor.cpp b/src/qt/cursor.cpp index 0acde39f70..fa884271da 100644 --- a/src/qt/cursor.cpp +++ b/src/qt/cursor.cpp @@ -142,7 +142,7 @@ void wxCursor::InitFromStock( wxStockCursor cursorId ) */ default: wxFAIL_MSG(wxT("unsupported cursor type")); - // will use the standard one + qt_cur = Qt::ArrowCursor; break; }