This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix unitialized warnings in S_pmtrans
authorNicolas R <atoomic@cpan.org>
Thu, 5 Nov 2020 16:30:34 +0000 (10:30 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 6 Nov 2020 16:36:42 +0000 (09:36 -0700)
op.c

diff --git a/op.c b/op.c
index bf3c84e..421387e 100644 (file)
--- a/op.c
+++ b/op.c
@@ -7021,7 +7021,7 @@ S_pmtrans(pTHX_ OP *o, OP *expr, OP *repl)
     UV* t_array;
     SV* t_invlist;
     UV* r_map;
-    UV r_cp, t_cp;
+    UV r_cp = 0, t_cp = 0;
     UV t_cp_end = (UV) -1;
     UV r_cp_end;
     Size_t len;