summaryrefslogtreecommitdiff
path: root/stdio-common/vfscanf.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2013-10-31 12:51:03 +0100
committerAndreas Schwab <schwab@suse.de>2013-10-31 12:51:03 +0100
commita4966c6104918ac884ee1131a4ed23c5ad6b4c5a (patch)
tree50d215a87669be3f9b9cc0164a2affe45f392bad /stdio-common/vfscanf.c
parent28d708c44bc47b56f6551ff285f78edcf61c208a (diff)
downloadglibc-a4966c6104918ac884ee1131a4ed23c5ad6b4c5a.tar.gz
Fix parsing of 0e+0 as float
Diffstat (limited to 'stdio-common/vfscanf.c')
-rw-r--r--stdio-common/vfscanf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c
index 78dc2fcfe5..e6fa8f372b 100644
--- a/stdio-common/vfscanf.c
+++ b/stdio-common/vfscanf.c
@@ -1966,6 +1966,8 @@ _IO_vfscanf_internal (_IO_FILE *s, const char *format, _IO_va_list argptr,
if (width > 0)
--width;
}
+ else
+ got_digit = 1;
}
while (1)