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