summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vfscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/vfscanf.c')
-rw-r--r--lib/libc/stdio/vfscanf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c
index e329eed..47334d5 100644
--- a/lib/libc/stdio/vfscanf.c
+++ b/lib/libc/stdio/vfscanf.c
@@ -145,6 +145,8 @@ __svfscanf(FILE *fp, const char *fmt0, va_list ap)
char decimal_point = localeconv()->decimal_point[0];
#endif
+ ORIENT(fp, -1);
+
nassigned = 0;
nconversions = 0;
nread = 0;
OpenPOWER on IntegriCloud