]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix unintialized pointer in wxCommandProcessor when
authorMattia Barbon <mbarbon@cpan.org>
Fri, 18 Jul 2003 13:21:35 +0000 (13:21 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Fri, 18 Jul 2003 13:21:35 +0000 (13:21 +0000)
wxUSE_STL=0.

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

src/common/cmdproc.cpp

index f85b076762cf025f073b940b19b7d022a28e9d0a..09603432bd98bc63c9b09da1fb01f4ffa73c0372 100644 (file)
@@ -69,6 +69,9 @@ wxCommandProcessor::wxCommandProcessor(int maxCommands)
 #endif // wxUSE_MENUS
     m_undoAccelerator = wxT("\tCtrl+Z");
     m_redoAccelerator = wxT("\tCtrl+Y");
+#if !wxUSE_STL
+    m_currentCommand = NULL;
+#endif
 }
 
 wxCommandProcessor::~wxCommandProcessor()