[git commit] printf: (allegedly) fix testsuite failure
Denys Vlasenko
vda.linux at googlemail.com
Fri Jun 26 22:07:23 UTC 2009
commit: http://git.busybox.net/busybox/commit/?id=7e6034309e31d6d4d6a80341897cbf693a281dde
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Colin Watson <cjwatson at ubuntu.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
coreutils/printf.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
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);
--
1.6.0.6
More information about the busybox-cvs
mailing list