summaryrefslogtreecommitdiffstats
path: root/lib/libc/tests/stdio/getdelim_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/tests/stdio/getdelim_test.c')
-rw-r--r--lib/libc/tests/stdio/getdelim_test.c1
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. */
OpenPOWER on IntegriCloud