Need a SPAGAIN here because the stack pointer might have
Rafael Garcia-Suarez [Tue, 13 Mar 2007 11:02:03 +0000 (11:02 +0000)]
moved when evaluating a tied hash in scalar context.

p4raw-id: //depot/perl@30560

pp_hot.c

index ca9e5a6..da4148f 100644 (file)
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -900,6 +900,7 @@ PP(pp_rv2av)
     else if (gimme == G_SCALAR) {
        dTARGET;
     TARG = Perl_hv_scalar(aTHX_ (HV*)sv);
+       SPAGAIN;
        SETTARG;
     }
     }