summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/refill.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/refill.c')
-rw-r--r--lib/libc/stdio/refill.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/stdio/refill.c b/lib/libc/stdio/refill.c
index a1e4e30..b76bb70 100644
--- a/lib/libc/stdio/refill.c
+++ b/lib/libc/stdio/refill.c
@@ -76,6 +76,8 @@ __srefill(FILE *fp)
if (!__sdidinit)
__sinit();
+ ORIENT(fp, -1);
+
fp->_r = 0; /* largely a convenience for callers */
/* SysV does not make this test; take it out for compatibility */
OpenPOWER on IntegriCloud