printf: (allegedly) fix testsuite failure

Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-06-27 00:07:23 +02:00
parent 4248c33a85
commit 7e6034309e

View File

@ -152,6 +152,8 @@ static void print_direc(char *format, unsigned fmt_length,
if (have_width - 1 == have_prec) if (have_width - 1 == have_prec)
have_width = NULL; have_width = NULL;
errno = 0;
switch (format[fmt_length - 1]) { switch (format[fmt_length - 1]) {
case 'c': case 'c':
printf(format, *argument); printf(format, *argument);