musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stdio/vfprintf.c 5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stdio/vfprintf.c b/src/stdio/vfprintf.c
index 2c4fdf3d..67660121 100644
--- a/src/stdio/vfprintf.c
+++ b/src/stdio/vfprintf.c
@@ -570,7 +570,10 @@ static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg,
case 'u':
a = fmt_u(arg.i, z);
}
- if (!arg.i && !p) continue;
+ if (!arg.i && !p) {
+ a=z;
+ break;
+ }
if (p>=0) fl &= ~ZERO_PAD;
p = MAX(p, z-a + !arg.i);
break;
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月04日 21:22:31 +0000

AltStyle によって変換されたページ (->オリジナル) /