summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-04-17 13:14:55 +0000
committerNicholas Clark <nick@ccl4.org>2006-04-17 13:14:55 +0000
commitce3e5c451d1a009a73fa3a69c256b0fd8af3aa33 (patch)
treef0f4f8f84e8cdb6c3b7055e7158497558367ace7 /hv.c
parentc2b7afd3c0b668fe31fd8835d487d6343bfcf526 (diff)
downloadperl-ce3e5c451d1a009a73fa3a69c256b0fd8af3aa33.tar.gz
Add assertions to cover cases where the Coverity scanner thinks we
could are deferencing a NULL pointer, but we think it missed something it should have been capable of figuring out. p4raw-id: //depot/perl@27867
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hv.c b/hv.c
index cb36c2f517..d912ccd6bc 100644
--- a/hv.c
+++ b/hv.c
@@ -72,6 +72,7 @@ S_new_he(pTHX)
if (!*root)
S_more_he(aTHX);
he = *root;
+ assert(he);
*root = HeNEXT(he);
UNLOCK_SV_MUTEX;
return he;