summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry D. Hedden <jdhedden@cpan.org>2009-11-13 08:57:22 -0500
committerVincent Pit <vince@profvince.com>2009-11-13 17:44:17 +0100
commitb263a1ad7bd90448db5ef3b79b444fff3dcb2473 (patch)
tree1d536177f6764b8a1705282e829e531ffd0a4e04
parent520bb15084a0e2fc0e05c6506b3265cad2d8f438 (diff)
downloadperl-b263a1ad7bd90448db5ef3b79b444fff3dcb2473.tar.gz
Fix compiler warnings:
pp_ctl.c: In function `Perl_pp_return': pp_ctl.c:2092: warning: 'retop' might be used uninitialized in this function pp_ctl.c: In function `Perl_pp_last': pp_ctl.c:2214: warning: 'nextop' might be used uninitialized in this function
-rw-r--r--pp_ctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 921363fe97..a6298872ad 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2089,7 +2089,7 @@ PP(pp_return)
PMOP *newpm;
I32 optype = 0;
SV *sv;
- OP *retop;
+ OP *retop = NULL;
const I32 cxix = dopoptosub(cxstack_ix);
@@ -2211,7 +2211,7 @@ PP(pp_last)
I32 pop2 = 0;
I32 gimme;
I32 optype;
- OP *nextop;
+ OP *nextop = NULL;
SV **newsp;
PMOP *newpm;
SV **mark;