This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pad.c: comment typo
[perl5.git] / av.c
diff --git a/av.c b/av.c
index 5afae8d..cf3386c 100644 (file)
--- a/av.c
+++ b/av.c
@@ -542,7 +542,7 @@ void
 Perl_av_undef(pTHX_ AV *av)
 {
     bool real;
-    SSize_t orig_ix;
+    SSize_t orig_ix = PL_tmps_ix; /* silence bogus warning about possible unitialized use */
 
     PERL_ARGS_ASSERT_AV_UNDEF;
     assert(SvTYPE(av) == SVt_PVAV);
@@ -551,7 +551,8 @@ Perl_av_undef(pTHX_ AV *av)
     if (SvTIED_mg((const SV *)av, PERL_MAGIC_tied)) 
        av_fill(av, -1);
 
-    if ((real = cBOOL(AvREAL(av)))) {
+    real = cBOOL(AvREAL(av));
+    if (real) {
        SSize_t key = AvFILLp(av) + 1;
 
         /* avoid av being freed when calling destructors below */