summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorTassilo von Parseval <tassilo.parseval@post.rwth-aachen.de>2003-12-08 09:17:46 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-12-08 07:37:27 +0000
commitdf8c69647dfe89de227fd81e7ece25070f8b880e (patch)
tree91af5b45e56a612afce027e51645bd6b8e70dc72 /hv.c
parent988e6e7e0f6b44b3b1bb6149117affb3c43e8600 (diff)
downloadperl-df8c69647dfe89de227fd81e7ece25070f8b880e.tar.gz
iterator reset moved to hv.c (was: [PATCH] SCALAR/FIRSTKEY for tied hashes in scalar context)
Message-id: <20031208071746.GA594@ethan> p4raw-id: //depot/perl@21869
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hv.c b/hv.c
index ec616c0518..4f95d1ee98 100644
--- a/hv.c
+++ b/hv.c
@@ -1452,7 +1452,7 @@ Perl_hv_clear(pTHX_ HV *hv)
}
}
}
- return;
+ goto reset;
}
hfreeentries(hv);
@@ -1466,6 +1466,8 @@ Perl_hv_clear(pTHX_ HV *hv)
HvHASKFLAGS_off(hv);
HvREHASH_off(hv);
+ reset:
+ HvEITER(hv) = NULL;
}
/*