equal
deleted
inserted
replaced
177 |
177 |
178 static char **last_environ; |
178 static char **last_environ; |
179 |
179 |
180 void portable_setenv(const char *name,const char *value) |
180 void portable_setenv(const char *name,const char *value) |
181 { |
181 { |
|
182 if (value==0) value=""; |
182 #if defined(_WIN32) && !defined(__CYGWIN__) |
183 #if defined(_WIN32) && !defined(__CYGWIN__) |
183 SetEnvironmentVariable(name,value); |
184 SetEnvironmentVariable(name,value); |
184 #else |
185 #else |
185 register char **ep = 0; |
186 register char **ep = 0; |
186 register size_t size; |
187 register size_t size; |