mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
Allow prec==0.
This commit is contained in:
parent
161060a463
commit
a6ea03aea9
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ encodefmt(Fmt *f)
|
||||||
uchar *b;
|
uchar *b;
|
||||||
char obuf[64]; // rsc optimization
|
char obuf[64]; // rsc optimization
|
||||||
|
|
||||||
if(!(f->flags&FmtPrec) || f->prec < 1)
|
if(!(f->flags&FmtPrec) || f->prec < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
b = va_arg(f->args, uchar*);
|
b = va_arg(f->args, uchar*);
|
||||||
|
|
Loading…
Reference in a new issue