remove errno setting from setenv, malloc sets it correctly on oom

This commit is contained in:
Szabolcs Nagy
2013-10-07 13:26:51 +00:00
parent 1e81fa4524
commit 4405702a41
-1
View File
@@ -26,6 +26,5 @@ int setenv(const char *var, const char *value, int overwrite)
if (!__putenv(s, 1)) return 0;
}
free(s);
errno = ENOMEM;
return -1;
}