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
This commit is contained in:
parent
e37e082ef2
commit
4871d34290
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user