summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdio/vfscanf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c
index 118323f..ea3004c 100644
--- a/lib/libc/stdio/vfscanf.c
+++ b/lib/libc/stdio/vfscanf.c
@@ -138,7 +138,6 @@ __svfscanf(FILE *fp, const char *fmt0, va_list ap)
char ccltab[256]; /* character class table for %[...] */
char buf[BUF]; /* buffer for numeric and mb conversions */
wchar_t *wcp; /* handy wide character pointer */
- wchar_t *wcp0; /* saves original value of wcp */
size_t nconv; /* length of multibyte sequence converted */
static const mbstate_t initial;
mbstate_t mbs;
@@ -434,9 +433,9 @@ literal:
int nchars;
if ((flags & SUPPRESS) == 0)
- wcp = wcp0 = va_arg(ap, wchar_t *);
+ wcp = va_arg(ap, wchar_t *);
else
- wcp = wcp0 = &twc;
+ wcp = &twc;
n = 0;
nchars = 0;
while (width != 0) {
OpenPOWER on IntegriCloud