From: Vadim Zeitlin Date: Sat, 9 Jun 2007 17:02:56 +0000 (+0000) Subject: initialize the variable as XtVaGetValues() may not do it apparently X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4871d34290873072ca2783074d4779ba5ecb2052 initialize the variable as XtVaGetValues() may not do it apparently git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/motif/window.cpp b/src/motif/window.cpp index 9a7d7eb156..3063917e61 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -634,7 +634,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);