From: Szabolcs Nagy Date: Mon, 7 Oct 2013 13:26:51 +0000 (+0000) Subject: remove errno setting from setenv, malloc sets it correctly on oom X-Git-Tag: v0.9.15~96 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4405702a418d0bb28a72a92cf097394770a0f990;p=oweals%2Fmusl.git remove errno setting from setenv, malloc sets it correctly on oom --- diff --git a/src/env/setenv.c b/src/env/setenv.c index 0a458968..76e8ee12 100644 --- a/src/env/setenv.c +++ b/src/env/setenv.c @@ -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; }