summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>1998-01-24 12:02:34 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>1998-01-24 12:02:34 +0000
commit67a38de0970070c8aa928e300768e725698b3516 (patch)
tree397c37ef7b089378b20e2cd74f1dd039b17662df /scope.c
parent31da6858e76569983828f43aec742159e881d627 (diff)
downloadperl-67a38de0970070c8aa928e300768e725698b3516.tar.gz
Gisle's av_unshift tweak, two small patches from chip
and check for NULL in hv_delete in case '~' and tie magic are present p4raw-id: //depot/ansiperl@438
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/scope.c b/scope.c
index bca1c2b455..61bc731457 100644
--- a/scope.c
+++ b/scope.c
@@ -205,11 +205,14 @@ AV *
save_ary(GV *gv)
{
dTHR;
- AV *oav, *av;
+ AV *oav = GvAVn(gv);
+ AV *av;
+ if (!AvREAL(oav) && AvREIFY(oav))
+ av_reify(oav);
SSCHECK(3);
SSPUSHPTR(gv);
- SSPUSHPTR(oav = GvAVn(gv));
+ SSPUSHPTR(oav);
SSPUSHINT(SAVEt_AV);
GvAV(gv) = Null(AV*);