diff options
Diffstat (limited to 'src/stdio/vfwscanf.c')
-rw-r--r-- | src/stdio/vfwscanf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdio/vfwscanf.c b/src/stdio/vfwscanf.c index 760864ff..44fac78e 100644 --- a/src/stdio/vfwscanf.c +++ b/src/stdio/vfwscanf.c @@ -109,6 +109,8 @@ int vfwscanf(FILE *restrict f, const wchar_t *restrict fmt, va_list ap) for (p=fmt; *p; p++) { + alloc = 0; + if (iswspace(*p)) { while (iswspace(p[1])) p++; while (iswspace((c=getwc(f)))) pos++; |