Project

General

Profile

Bug #5615 ยป hash.c.patch

Anonymous, 11/11/2011 02:56 PM

View differences:

hash.c 2011-11-11 14:32:51.000000000 +0900
2302 2302
    if (value) {
2303 2303
	str = malloc(len += strlen(value) + 2);
2304 2304
	snprintf(str, len, "%s=%s", name, value);
2305
	if (putenv(str))
2305
	if (putenv(str)) {
2306
	    free(str);
2306 2307
	    rb_sys_fail("putenv");
2308
        }    
2309
	free(str);
2307 2310
    }
2308 2311
#else  /* WIN32 */
2309 2312
    size_t len;