diff options
Diffstat (limited to 'stdio-common/printf-parse.h')
-rw-r--r-- | stdio-common/printf-parse.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdio-common/printf-parse.h b/stdio-common/printf-parse.h index 78811701bb..eff2816607 100644 --- a/stdio-common/printf-parse.h +++ b/stdio-common/printf-parse.h @@ -117,7 +117,7 @@ find_spec (const UCHAR_T *format, mbstate_t *ps) /* These are defined in reg-printf.c. */ -extern printf_arginfo_function *__printf_arginfo_table[] attribute_hidden; +extern printf_arginfo_function **__printf_arginfo_table attribute_hidden; extern printf_function **__printf_function_table attribute_hidden; @@ -354,7 +354,7 @@ parse_one_spec (const UCHAR_T *format, size_t posn, struct printf_spec *spec, /* Get the format specification. */ spec->info.spec = (wchar_t) *format++; - if (__printf_function_table != NULL + if (__builtin_expect (__printf_function_table != NULL, 0) && spec->info.spec <= UCHAR_MAX && __printf_arginfo_table[spec->info.spec] != NULL) /* We don't try to get the types for all arguments if the format |