This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
slen may be uninitialized.
[perl5.git] / utf8.c
diff --git a/utf8.c b/utf8.c
index 0ce3eb2..e97115f 100644 (file)
--- a/utf8.c
+++ b/utf8.c
@@ -2808,7 +2808,7 @@ Perl_swash_fetch(pTHX_ SV *swash, const U8 *ptr, bool do_utf8)
     HV *const hv = MUTABLE_HV(SvRV(swash));
     U32 klen;
     U32 off;
-    STRLEN slen;
+    STRLEN slen = 0;
     STRLEN needents;
     const U8 *tmps = NULL;
     U32 bit;