Bug #5615 ยป hash.c.patch
hash.c 2011-11-11 14:32:51.000000000 +0900 | ||
---|---|---|
if (value) {
|
||
str = malloc(len += strlen(value) + 2);
|
||
snprintf(str, len, "%s=%s", name, value);
|
||
if (putenv(str))
|
||
if (putenv(str)) {
|
||
free(str);
|
||
rb_sys_fail("putenv");
|
||
}
|
||
free(str);
|
||
}
|
||
#else /* WIN32 */
|
||
size_t len;
|