From 084db46c8b4f3f8d5e6a5f55e09e04f5a680c8a5 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Fri, 18 Jul 2003 13:21:35 +0000 Subject: [PATCH] Fix unintialized pointer in wxCommandProcessor when wxUSE_STL=0. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/cmdproc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/cmdproc.cpp b/src/common/cmdproc.cpp index f85b076762..09603432bd 100644 --- a/src/common/cmdproc.cpp +++ b/src/common/cmdproc.cpp @@ -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()