From 5af1e63c16c72b98761ddcbdf81bc384d5b73458 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 25 Nov 2013 16:50:06 +0000 Subject: [PATCH] always initialize m_statText git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/widgets/static.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/widgets/static.cpp b/samples/widgets/static.cpp index 16e582f203..9acf45b871 100644 --- a/samples/widgets/static.cpp +++ b/samples/widgets/static.cpp @@ -215,11 +215,12 @@ StaticWidgetsPage::StaticWidgetsPage(WidgetsBookCtrl *book, m_radioHAlign = m_radioVAlign = (wxRadioBox *)NULL; + m_statText = NULL; #if wxUSE_STATLINE m_statLine = (wxStaticLine *)NULL; #endif // wxUSE_STATLINE #if wxUSE_MARKUP - m_statText = m_statMarkup = NULL; + m_statMarkup = NULL; #endif // wxUSE_MARKUP m_sizerStatBox = (wxStaticBoxSizer *)NULL;