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
commiteb98cdde16e9b7c3342f9e32e8c24b31cbce1302 (patch)
tree4e6455c455923583f7a0b066f119cd4558043708 /pp.c
parenta9b4406fbfe67d66e4b84b1632c3abea5fef71ad (diff)
downloadperl-eb98cdde16e9b7c3342f9e32e8c24b31cbce1302.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");