From 7e6034309e31d6d4d6a80341897cbf693a281dde Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 27 Jun 2009 00:07:23 +0200 Subject: printf: (allegedly) fix testsuite failure Signed-off-by: Colin Watson Signed-off-by: Denys Vlasenko --- coreutils/printf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'coreutils') diff --git a/coreutils/printf.c b/coreutils/printf.c index 5b326c6..eb53fa4 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c @@ -152,6 +152,8 @@ static void print_direc(char *format, unsigned fmt_length, if (have_width - 1 == have_prec) have_width = NULL; + errno = 0; + switch (format[fmt_length - 1]) { case 'c': printf(format, *argument); -- cgit v1.1