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);