diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 1998-01-24 12:02:34 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 1998-01-24 12:02:34 +0000 |
commit | 67a38de0970070c8aa928e300768e725698b3516 (patch) | |
tree | 397c37ef7b089378b20e2cd74f1dd039b17662df /scope.c | |
parent | 31da6858e76569983828f43aec742159e881d627 (diff) | |
download | perl-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.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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*); |