]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/control.cpp
Allow app to call SetWindowVariant before creation of control
[wxWidgets.git] / src / motif / control.cpp
index 6b5b4c916288a0fb68cab47cf01ea4109a57d10a..e6d45853c9b0f832f4b3456cd7fb0a30aea52207 100644 (file)
@@ -99,7 +99,7 @@ wxString wxControl::GetLabel() const
     if (!widget)
         return wxEmptyString;
 
-    XmString text;
+    XmString text = NULL;
     XtVaGetValues (widget,
         XmNlabelString, &text,
         NULL);