summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2016-08-10 19:06:03 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2016-08-11 09:36:21 -0400
commit82229f9f47d9a169b59715582fb5a09b5a4ac0ff (patch)
treed35c56c639c344fbac2babbc359aaa721ccba955 /sv.c
parent520f3e58c346a7bc3ef0509dfe0db206dae454ee (diff)
downloadperl-82229f9f47d9a169b59715582fb5a09b5a4ac0ff.tar.gz
[rt.perl.org #128888]: printf %a mishandles zero precision
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 93e6364071..ac41af27df 100644
--- a/sv.c
+++ b/sv.c
@@ -12510,7 +12510,7 @@ Perl_sv_vcatpvfn_flags(pTHX_ SV *const sv, const char *const pat, const STRLEN p
v0 = vhex;
}
- if (precis > 0) {
+ if (has_precis) {
U8* ve = (subnormal ? vlnz + 1 : vend);
SSize_t vn = ve - (subnormal ? vfnz : vhex);
if ((SSize_t)(precis + 1) < vn) {