diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-27 00:07:23 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-27 00:07:23 +0200 |
commit | 7e6034309e31d6d4d6a80341897cbf693a281dde (patch) | |
tree | 61441928488101f128be4d8b1f993afd9c8abad4 | |
parent | 4248c33a8528564213d0787770e64b224d134c26 (diff) | |
download | busybox-w32-7e6034309e31d6d4d6a80341897cbf693a281dde.tar.gz busybox-w32-7e6034309e31d6d4d6a80341897cbf693a281dde.tar.bz2 busybox-w32-7e6034309e31d6d4d6a80341897cbf693a281dde.zip |
printf: (allegedly) fix testsuite failure
Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | coreutils/printf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coreutils/printf.c b/coreutils/printf.c index 5b326c643..eb53fa490 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c | |||
@@ -152,6 +152,8 @@ static void print_direc(char *format, unsigned fmt_length, | |||
152 | if (have_width - 1 == have_prec) | 152 | if (have_width - 1 == have_prec) |
153 | have_width = NULL; | 153 | have_width = NULL; |
154 | 154 | ||
155 | errno = 0; | ||
156 | |||
155 | switch (format[fmt_length - 1]) { | 157 | switch (format[fmt_length - 1]) { |
156 | case 'c': | 158 | case 'c': |
157 | printf(format, *argument); | 159 | printf(format, *argument); |