]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/stdpaths.cpp
Test m_nowpeer pointer before using it.
[wxWidgets.git] / src / unix / stdpaths.cpp
index 4089a9e06eb917a8f5a3467e833ebfff79e64ba6..64ac00cc22456b5f72e946dde490b562161aa105 100644 (file)
@@ -197,7 +197,11 @@ wxString wxStandardPaths::GetDataDir() const
     // practice for running well-written (and so using wxStandardPaths to find
     // their files) wx applications without installing them
     static const wxString
-      envOverride(getenv("WX_" + wxTheApp->GetAppName().Upper() + "_DATA_DIR"));
+      envOverride(
+        getenv(
+            ("WX_" + wxTheApp->GetAppName().Upper() + "_DATA_DIR").c_str()
+        )
+      );
 
     if ( !envOverride.empty() )
         return envOverride;