]> git.saurik.com Git - wxWidgets.git/commitdiff
initialize the variable as XtVaGetValues() may not do it apparently
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Jun 2007 17:02:56 +0000 (17:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Jun 2007 17:02:56 +0000 (17:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/window.cpp

index 9a7d7eb156fbbbc678ca173af4212022b7683012..3063917e6122e4a3e127698df2f855cfae5c9839 100644 (file)
@@ -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);