summaryrefslogtreecommitdiff
path: root/av.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-12-28 09:44:14 -0600
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-12-29 15:32:42 +0000
commit7a5b473ebcffe303e0ee757c10a615cdeb97e2f3 (patch)
treea07d37782c82ec117e5fc68c056b35ccc36f4705 /av.c
parent322a00dca208ae733bf03812b33845889461ef0b (diff)
downloadperl-7a5b473ebcffe303e0ee757c10a615cdeb97e2f3.tar.gz
av.c cleanup, plus!
Message-ID: <20051228214414.GD26033@petdance.com> p4raw-id: //depot/perl@26526
Diffstat (limited to 'av.c')
-rw-r--r--av.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/av.c b/av.c
index 6223136116..c2250932c7 100644
--- a/av.c
+++ b/av.c
@@ -62,9 +62,11 @@ extended.
void
Perl_av_extend(pTHX_ AV *av, I32 key)
{
+ MAGIC *mg;
+
assert(av);
- MAGIC * const mg = SvTIED_mg((SV*)av, PERL_MAGIC_tied);
+ mg = SvTIED_mg((SV*)av, PERL_MAGIC_tied);
if (mg) {
dSP;
ENTER;
@@ -416,8 +418,6 @@ Perl_av_clear(pTHX_ register AV *av)
register I32 key;
assert(av);
-
-/* XXX Should av_clear really be NN? */
#ifdef DEBUGGING
if (SvREFCNT(av) == 0 && ckWARN_d(WARN_DEBUGGING)) {
Perl_warner(aTHX_ packWARN(WARN_DEBUGGING), "Attempt to clear deleted array");