summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2002-08-17 01:17:09 +0000
committerhv <hv@crypt.org>2002-08-17 01:17:09 +0000
commitaf288a606d0d98092d972aa99e1ea87fbb35d29e (patch)
tree4e6455c455923583f7a0b066f119cd4558043708 /pp.c
parent6d822dc4045278fb03135b2683bac92dba061369 (diff)
downloadperl-af288a606d0d98092d972aa99e1ea87fbb35d29e.tar.gz
pp.c warns that sv may be used uninitialised in pp_delete()
p4raw-id: //depot/perl@17726
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index 322e464753..06a78a4baa 100644
--- a/pp.c
+++ b/pp.c
@@ -3763,6 +3763,8 @@ PP(pp_delete)
else if (SvTYPE(hv) == SVt_PVAV) {
if (PL_op->op_flags & OPf_SPECIAL)
sv = av_delete((AV*)hv, SvIV(keysv), discard);
+ else
+ DIE(aTHX_ "panic: avhv_delete no longer supported");
}
else
DIE(aTHX_ "Not a HASH reference");