From edcbb2ecce1455995c5990fb5f39d14881b809fa Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Sun, 14 Dec 2003 19:10:23 +0000 Subject: Fix a couple of 'declaration after statement' errors. --- libc/stdio/scanf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/stdio/scanf.c') diff --git a/libc/stdio/scanf.c b/libc/stdio/scanf.c index ac5bf9931..b1299196f 100644 --- a/libc/stdio/scanf.c +++ b/libc/stdio/scanf.c @@ -1119,8 +1119,8 @@ int VFSCANF (FILE *__restrict fp, const Wchar *__restrict format, va_list arg) /* ANSI/ISO C99 requires format string to be a valid multibyte string * beginning and ending in its initial shift state. */ if (((__UCLIBC_CURLOCALE_DATA).encoding) != __ctype_encoding_7_bit) { - mbstate.mask = 0; /* Initialize the mbstate. */ const char *p = format; + mbstate.mask = 0; /* Initialize the mbstate. */ if (mbsrtowcs(NULL, &p, SIZE_MAX, &mbstate) == ((size_t)(-1))) { __set_errno(EINVAL); /* Format string is invalid. */ return 0; -- cgit v1.2.3