summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/getdelim.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/getdelim.c')
-rw-r--r--newlib/libc/stdio/getdelim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/getdelim.c b/newlib/libc/stdio/getdelim.c
index 0fdfb3add..23fc50218 100644
--- a/newlib/libc/stdio/getdelim.c
+++ b/newlib/libc/stdio/getdelim.c
@@ -79,7 +79,7 @@ _DEFUN(__getdelim, (bufptr, n, delim, fp),
*n = DEFAULT_LINE_SIZE;
}
- CHECK_INIT (_REENT);
+ CHECK_INIT (_REENT, fp);
_flockfile (fp);