From: Nicholas Clark Date: Tue, 21 Jun 2005 10:35:09 +0000 (+0000) Subject: No need to set flags twice. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a7f5e44d3c17dca4fbe187441ce453de0886cdf3;p=p5sagit%2Fp5-mst-13.2.git No need to set flags twice. p4raw-id: //depot/perl@24919 --- diff --git a/av.c b/av.c index 7a3e44f..2c68efb 100644 --- a/av.c +++ b/av.c @@ -358,7 +358,7 @@ Perl_newAV(pTHX) av = (AV*)NEWSV(3,0); sv_upgrade((SV *)av, SVt_PVAV); - AvREAL_on(av); + /* sv_upgrade does AvREAL_only() */ AvALLOC(av) = 0; SvPV_set(av, (char*)0); AvMAX(av) = AvFILLp(av) = -1; @@ -382,7 +382,7 @@ Perl_av_make(pTHX_ register I32 size, register SV **strp) av = (AV*)NEWSV(8,0); sv_upgrade((SV *) av,SVt_PVAV); - AvREAL_only(av); + /* sv_upgrade does AvREAL_only() */ if (size) { /* "defined" was returning undef for size==0 anyway. */ register SV** ary; register I32 i;