From 1ebca144e6502864965fd0d60a42c7dfbd301736 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 2 Sep 2007 21:09:21 +0000 Subject: [PATCH] Fixed obvious error (no idea why it apparently used to compile before...). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os2/utils.cpp b/src/os2/utils.cpp index cc0812db27..9313677cec 100644 --- a/src/os2/utils.cpp +++ b/src/os2/utils.cpp @@ -241,7 +241,7 @@ bool wxGetEnv(const wxString& var, wxString *value) bool wxSetEnv(const wxString& variable, const wxChar *value) { #if defined(HAVE_SETENV) - return setenv(variable.mb_str(), value ? wxString(value).mb_str().data() + return setenv(variable.mb_str(), value ? wxString(value).mb_str() : NULL, 1 /* overwrite */) == 0; #elif defined(HAVE_PUTENV) wxString s = variable;