From 96b17da7288293d43de406d671f78865f85ed2e0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 9 Jun 2007 17:04:58 +0000 Subject: [PATCH] initialize the variable as XtVaGetValues() may not do it apparently [backport from HEAD] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/motif/window.cpp b/src/motif/window.cpp index 5f84cf1442..eb0db82edf 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -641,7 +641,7 @@ void wxWindow::SetLabel(const wxString& label) wxString wxWindow::GetLabel() const { - char *label; + char *label = NULL; XtVaGetValues((Widget)GetMainWidget(), XmNtitle, &label, NULL); return wxString(label);