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
This commit is contained in:
Enji Cooper 2015-12-05 04:10:15 +00:00
parent df943f005e
commit 0b6008d017
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291839

View File

@ -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. */