diff options
author | Szabolcs Nagy <nsz@port70.net> | 2013-10-07 13:26:51 +0000 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2013-10-07 13:26:51 +0000 |
commit | 4405702a418d0bb28a72a92cf097394770a0f990 (patch) | |
tree | 53bcb73a00983c94b9b1089f1096d2938d6f3290 | |
parent | 1e81fa4524ecfd51e6a6578ff8038b4c05393101 (diff) | |
download | musl-4405702a418d0bb28a72a92cf097394770a0f990.tar.gz musl-4405702a418d0bb28a72a92cf097394770a0f990.tar.bz2 musl-4405702a418d0bb28a72a92cf097394770a0f990.tar.xz musl-4405702a418d0bb28a72a92cf097394770a0f990.zip |
remove errno setting from setenv, malloc sets it correctly on oom
-rw-r--r-- | src/env/setenv.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |