summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-06-05 14:20:51 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-06-05 14:20:51 +0000
commite858de61083066071eb1526df39bdaa094032c61 (patch)
treea59a60b162edf35b5557f553d4812553b75a996d /hv.c
parent5196be3eab7cb5c37d1fce858e95874c8439e54f (diff)
downloadperl-e858de61083066071eb1526df39bdaa094032c61.tar.gz
More fixups for thrperl integration.
p4raw-id: //depot/perl@27
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hv.c b/hv.c
index 77c379884a..454ee231cb 100644
--- a/hv.c
+++ b/hv.c
@@ -557,6 +557,7 @@ U32 hash;
if (SvRMAGICAL(hv)) {
if (mg_find((SV*)hv,'P')) {
+ dTHR; /* just for SvTRUE */
sv = sv_newmortal();
keysv = sv_2mortal(newSVsv(keysv));
mg_copy((SV*)hv, sv, (char*)keysv, HEf_SVKEY);
@@ -924,6 +925,7 @@ HV *hv;
}
magic_nextpack((SV*) hv,mg,key);
if (SvOK(key)) {
+ dTHR; /* just for SvREFCNT_inc */
/* force key to stay around until next time */
HeSVKEY_set(entry, SvREFCNT_inc(key));
return entry; /* beware, hent_val is not set */