]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix harmless warning about uninitialized variable in fswatcher sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Nov 2012 13:14:15 +0000 (13:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Nov 2012 13:14:15 +0000 (13:14 +0000)
Just always initialize it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/fswatcher/fswatcher.cpp

index 37f7c31c0d1d66d7950da2c71cfc263c7fac52d3..890fd45ff5003b322ae5277e42eb9d83b4a0a6e8 100644 (file)
@@ -420,7 +420,7 @@ void MyFrame::OnRemove(wxCommandEvent& WXUNUSED(event))
     if (idx == -1)
         return;
 
     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
     wxString path = m_filesList->GetItemText(idx).Mid(6);
 
     // This will tell wxFileSystemWatcher whether to dereference symlinks