aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio64/freopen64.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio64/freopen64.c')
-rw-r--r--newlib/libc/stdio64/freopen64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio64/freopen64.c b/newlib/libc/stdio64/freopen64.c
index fc84659..b8b7974 100644
--- a/newlib/libc/stdio64/freopen64.c
+++ b/newlib/libc/stdio64/freopen64.c
@@ -91,9 +91,9 @@ _DEFUN (_freopen64_r, (ptr, file, mode, fp),
__sfp_lock_acquire ();
- _flockfile(fp);
+ CHECK_INIT (ptr);
- CHECK_INIT (fp);
+ _flockfile(fp);
if ((flags = __sflags (ptr, mode, &oflags)) == 0)
{