From: Abhijit Menon-Sen Date: Sat, 4 Aug 2001 16:56:35 +0000 (+0530) Subject: Re: [PATCH hv.c] newHVhv shouldn't reset xhv_max so often X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=45dea987ac01a22d305c6aa3413f540409537f26;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH hv.c] newHVhv shouldn't reset xhv_max so often Message-ID: <20010804165635.E526@lustre.dyn.wiw.org> p4raw-id: //depot/perl@11571 --- diff --git a/hv.c b/hv.c index 2962de3..0f57afb 100644 --- a/hv.c +++ b/hv.c @@ -1209,7 +1209,7 @@ Perl_newHVhv(pTHX_ HV *ohv) STRLEN len = HeKLEN_UTF8(oent); ent = new_HE(); - HeVAL(ent) = SvREFCNT_inc(HeVAL(oent)); + HeVAL(ent) = newSVsv(HeVAL(oent)); HeKEY_hek(ent) = shared ? share_hek(key, len, hash) : save_hek(key, len, hash); if (prev)