aboutsummaryrefslogtreecommitdiff
path: root/src/env
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-10-07 13:26:51 +0000
committerSzabolcs Nagy <nsz@port70.net>2013-10-07 13:26:51 +0000
commit4405702a418d0bb28a72a92cf097394770a0f990 (patch)
tree53bcb73a00983c94b9b1089f1096d2938d6f3290 /src/env
parent1e81fa4524ecfd51e6a6578ff8038b4c05393101 (diff)
downloadmusl-4405702a418d0bb28a72a92cf097394770a0f990.zip
musl-4405702a418d0bb28a72a92cf097394770a0f990.tar.gz
musl-4405702a418d0bb28a72a92cf097394770a0f990.tar.bz2
remove errno setting from setenv, malloc sets it correctly on oom
Diffstat (limited to 'src/env')
-rw-r--r--src/env/setenv.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/env/setenv.c b/src/env/setenv.c
index 0a45896..76e8ee1 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;
}