summaryrefslogtreecommitdiffstats
path: root/src/portable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/portable.cpp')
-rw-r--r--src/portable.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/portable.cpp b/src/portable.cpp
index 17a65d8..41eff1c 100644
--- a/src/portable.cpp
+++ b/src/portable.cpp
@@ -179,6 +179,7 @@ static char **last_environ;
void portable_setenv(const char *name,const char *value)
{
+ if (value==0) value="";
#if defined(_WIN32) && !defined(__CYGWIN__)
SetEnvironmentVariable(name,value);
#else