From 0b6008d0172f7f1ac6181b750b60ee11c7d93ef8 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Sat, 5 Dec 2015 04:10:15 +0000 Subject: [PATCH] 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 --- lib/libc/tests/stdio/getdelim_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libc/tests/stdio/getdelim_test.c b/lib/libc/tests/stdio/getdelim_test.c index ffc6810dd616..b7596b36a2d4 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. */