From a7a53b5f477796caf3b5d5d772cd4f07bd155dbd Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 2 Mar 2009 19:18:35 +0000 Subject: [PATCH] Fix unsetenv when UNSETENV_VOID --- env.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/env.c b/env.c index 4a7a0ea32..51704c890 100644 --- a/env.c +++ b/env.c @@ -286,7 +286,11 @@ unsetenv(var) if (strchr(var, '=') != NULL) { errno = EINVAL; +#ifndef UNSETENV_VOID + return; +#else return(-1); +#endif } /* Make sure we are operating on the current environment. */ -- 2.40.0