From 4405702a418d0bb28a72a92cf097394770a0f990 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Mon, 7 Oct 2013 13:26:51 +0000 Subject: [PATCH] remove errno setting from setenv, malloc sets it correctly on oom --- src/env/setenv.c | 1 - 1 file changed, 1 deletion(-) 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; } -- 2.25.1