summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2015-06-22 22:47:50 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2015-06-26 23:09:41 -0400
commitb66176f0a6f1ac30881749906bd6cc3a2e18f097 (patch)
tree76e37b146fa1516f1bd123f5c1cacdbadba589cc /hv.c
parent3bde2d43b7d173c5ef54ae544f9c18a705007265 (diff)
downloadperl-b66176f0a6f1ac30881749906bd6cc3a2e18f097.tar.gz
Impossible for entry to be NULL at this point.
740 if (return_svp) { notnull: At condition entry, the value of entry cannot be NULL. dead_error_condition: The condition entry must be true. CID 104777: Logically dead code (DEADCODE) dead_error_line: Execution cannot reach the expression NULL inside this statement: return entry ? (void *)&ent.... 741 return entry ? (void *) &HeVAL(entry) : NULL;
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hv.c b/hv.c
index f81de13ea1..2fd36ee461 100644
--- a/hv.c
+++ b/hv.c
@@ -742,7 +742,7 @@ Perl_hv_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen,
if (flags & HVhek_FREEKEY)
Safefree(key);
if (return_svp) {
- return entry ? (void *) &HeVAL(entry) : NULL;
+ return (void *) &HeVAL(entry);
}
return entry;
}