diff --git a/samples/fswatcher/fswatcher.cpp b/samples/fswatcher/fswatcher.cpp index 37f7c31c0d..890fd45ff5 100644 --- a/samples/fswatcher/fswatcher.cpp +++ b/samples/fswatcher/fswatcher.cpp @@ -420,7 +420,7 @@ void MyFrame::OnRemove(wxCommandEvent& WXUNUSED(event)) if (idx == -1) return; - bool ret; + bool ret = false; wxString path = m_filesList->GetItemText(idx).Mid(6); // This will tell wxFileSystemWatcher whether to dereference symlinks