diff options
author | ngie <ngie@FreeBSD.org> | 2015-12-05 04:10:15 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-12-05 04:10:15 +0000 |
commit | adde10383358a789372480ae5560aa1cd9fcfbf6 (patch) | |
tree | 21e53a7eff55f4c71234236e03e93ffb299fdbc7 /lib | |
parent | 912c9a615dc676b9dae1a0596679f68ff3210257 (diff) | |
download | FreeBSD-src-adde10383358a789372480ae5560aa1cd9fcfbf6.zip FreeBSD-src-adde10383358a789372480ae5560aa1cd9fcfbf6.tar.gz |
Initialize errno to 0 in the nul testcase before testing it
For some odd reason stable/10 requires this, otherwise it always fails
the errno == 0 check on line 196.
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/tests/stdio/getdelim_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/tests/stdio/getdelim_test.c b/lib/libc/tests/stdio/getdelim_test.c index ffc6810..b7596b3 100644 --- a/lib/libc/tests/stdio/getdelim_test.c +++ b/lib/libc/tests/stdio/getdelim_test.c @@ -177,6 +177,7 @@ ATF_TC_BODY(nul, tc) char *line; size_t linecap, n; + errno = 0; line = NULL; linecap = 0; /* Make sure a NUL delimiter works. */ |