summaryrefslogtreecommitdiff
path: root/av.c
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-03 16:00:07 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-03 16:00:07 +0000
commite1c148c28bf3335bbd0ad9a2070b0917265c00c3 (patch)
tree4486f9b0e25136960b64fe6923a259aa6da45816 /av.c
parent8db299b857ebbe26dfb8bdded5060d4e93e0ef7c (diff)
downloadperl-e1c148c28bf3335bbd0ad9a2070b0917265c00c3.tar.gz
Replaced two occurrences of THREADSV(find_thread_sv(...)) (order
of execution causes core dump if threadsvp is moved). Replaced lvalue occurrence of AvARRAY(av) with SvPVX(av) (former does cast). p4raw-id: //depot/perl@459
Diffstat (limited to 'av.c')
-rw-r--r--av.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/av.c b/av.c
index 20c77d8444..ae5ffab472 100644
--- a/av.c
+++ b/av.c
@@ -367,7 +367,7 @@ av_undef(register AV *av)
SvREFCNT_dec(AvARRAY(av)[--key]);
}
Safefree(AvALLOC(av));
- AvARRAY(av) = 0;
+ SvPVX(av) = 0;
AvALLOC(av) = 0;
SvPVX(av) = 0;
AvMAX(av) = AvFILLp(av) = -1;