Note to self, doing *src_ary++ in a macro that evaluates
Artur Bergman [Thu, 25 Oct 2001 10:17:26 +0000 (10:17 +0000)]
the value more than once is a good way to dump core.

p4raw-id: //depot/perl@12639

sharedsv.c

index e91d7b9..ef5ebf0 100644 (file)
@@ -218,7 +218,8 @@ Perl_sharedsv_thrcnt_dec(pTHX_ shared_sv* ssv)
 
             while (items-- > 0) {
             if(SvTYPE(*src_ary))
-                Perl_sharedsv_thrcnt_dec(aTHX_ INT2PTR(shared_sv *, SvIV(*src_ary++)));
+                Perl_sharedsv_thrcnt_dec(aTHX_ INT2PTR(shared_sv *, SvIV(*src_ary)));
+                src_ary++;
             }
             break;
         }