summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorJerry D. Hedden <jdhedden@cpan.org>2009-11-13 08:54:11 -0500
committerVincent Pit <vince@profvince.com>2009-11-13 17:44:17 +0100
commit295d248eafe9bd5657e90c011cae790087ab221d (patch)
tree90e651ee3efeb1e5c6418bcadf34b7b2a29b36f4 /pp.c
parent635ccb1c96c21c95705df09e6e8425aaf05c1f69 (diff)
downloadperl-295d248eafe9bd5657e90c011cae790087ab221d.tar.gz
Fix compiler warning:
pp.c: In function `Perl_pp_delete': pp.c:4297: warning: 'sv' might be used uninitialized in this function
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 4b6d11faca..7641b54edf 100644
--- a/pp.c
+++ b/pp.c
@@ -4294,7 +4294,7 @@ PP(pp_delete)
else {
SV *keysv = POPs;
HV * const hv = MUTABLE_HV(POPs);
- SV *sv;
+ SV *sv = NULL;
if (SvTYPE(hv) == SVt_PVHV)
sv = hv_delete_ent(hv, keysv, discard, 0);
else if (SvTYPE(hv) == SVt_PVAV) {