summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/wbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/wbuf.c')
-rw-r--r--newlib/libc/stdio/wbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/wbuf.c b/newlib/libc/stdio/wbuf.c
index 0d2b72ea1..5f1e85a27 100644
--- a/newlib/libc/stdio/wbuf.c
+++ b/newlib/libc/stdio/wbuf.c
@@ -42,7 +42,7 @@ _DEFUN(__swbuf_r, (ptr, c, fp),
/* Ensure stdio has been initialized. */
- CHECK_INIT (ptr);
+ CHECK_INIT (ptr, fp);
/*
* In case we cannot write, or longjmp takes us out early,