From 24c622d6614207d54e25fbc004ddde77ce55871d Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Thu, 12 Mar 2015 00:39:08 +0000 Subject: [PATCH] setenv(0,...) is no longer valid in posix-2013 --- src/functional/env.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/functional/env.c b/src/functional/env.c index ab1f6e4..cf86439 100644 --- a/src/functional/env.c +++ b/src/functional/env.c @@ -55,8 +55,5 @@ int main() errno = 0; if ((r=setenv("","",0)) != -1 || errno != EINVAL) t_error("setenv(\"\",\"\",0): %d, errno: %d (%s), wanted -1, %d (EINVAL)\n", r, errno, strerror(errno), EINVAL); - errno = 0; - if ((r=setenv(0,"",0)) != -1 || errno != EINVAL) - t_error("setenv(0,\"\",0): %d, errno: %d (%s), wanted -1, %d (EINVAL)\n", r, errno, strerror(errno), EINVAL); return t_status; } -- 2.20.1