summaryrefslogtreecommitdiff
path: root/strcompat.c
diff options
context:
space:
mode:
Diffstat (limited to 'strcompat.c')
-rw-r--r--strcompat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/strcompat.c b/strcompat.c
index a5502c25e..9e275881c 100644
--- a/strcompat.c
+++ b/strcompat.c
@@ -60,8 +60,7 @@ int setenv(const char *name, const char *value, int overwrite)
int buflen;
buflen = strlen(name) + strlen(value) + 2;
- if (!(buf = alloca(buflen)))
- return -1;
+ buf = alloca(buflen);
if (!overwrite && getenv(name))
return 0;