projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d54adb
)
zero precision with zero value should not inhibit prefix/width printing
author
Rich Felker
<dalias@aerifal.cx>
Mon, 4 Jul 2011 05:57:00 +0000
(
01:57
-0400)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 4 Jul 2011 05:57:00 +0000
(
01:57
-0400)
src/stdio/vfprintf.c
patch
|
blob
|
history
diff --git
a/src/stdio/vfprintf.c
b/src/stdio/vfprintf.c
index 2c4fdf3d48a920f90f06722f175b89a52ebeb8d3..67660121a71e3801319d7d0c4cea82f43c3ab1ee 100644
(file)
--- 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;