From: Szabolcs Nagy Date: Thu, 12 Mar 2015 00:39:08 +0000 (+0000) Subject: setenv(0,...) is no longer valid in posix-2013 X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=commitdiff_plain;h=24c622d6614207d54e25fbc004ddde77ce55871d setenv(0,...) is no longer valid in posix-2013 --- 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; }