summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorAlan Burlison <Alan.Burlison@uk.sun.com>2003-11-19 14:39:03 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-11-19 19:56:20 +0000
commit5f099cb0574fe51d7450374a7827fa9383ec0061 (patch)
treec8d5553710871948d89954766b9ba98a18be12f8 /hv.c
parent715961523dc15717482c3eba9a533ed292b5a722 (diff)
downloadperl-5f099cb0574fe51d7450374a7827fa9383ec0061.tar.gz
clear of empty locked hash SEGVs
Message-ID: <3FBB8087.20206@sun.com> p4raw-id: //depot/perl@21748
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hv.c b/hv.c
index 53a0b3c992..29f25a3659 100644
--- a/hv.c
+++ b/hv.c
@@ -1803,7 +1803,7 @@ Perl_hv_clear(pTHX_ HV *hv)
xhv = (XPVHV*)SvANY(hv);
- if (SvREADONLY(hv)) {
+ if (SvREADONLY(hv) && xhv->xhv_array != NULL) {
/* restricted hash: convert all keys to placeholders */
I32 i;
HE* entry;