summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-01-06 01:04:09 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-01-06 01:04:09 +0000
commitaa7440fb47601ff018a63c772b1e8dd08a16e511 (patch)
tree838d814833a6384a511cbd06b8c0cd9ff6e6903a /toke.c
parent4f995af1133c713377e148b30b8c6a7a815772a3 (diff)
downloadperl-aa7440fb47601ff018a63c772b1e8dd08a16e511.tar.gz
IRIX compiler noticed that the bof initialization might be
bypassed by control flow. p4raw-id: //depot/perl@8343
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index cde1861c9b..e0d6f0773d 100644
--- a/toke.c
+++ b/toke.c
@@ -2111,6 +2111,7 @@ Perl_yylex(pTHX)
STRLEN len;
GV *gv = Nullgv;
GV **gvp = 0;
+ bool bof = FALSE;
/* check if there's an identifier for us to look at */
if (PL_pending_ident) {
@@ -2531,7 +2532,7 @@ Perl_yylex(pTHX)
goto retry;
}
do {
- bool bof = PL_rsfp ? TRUE : FALSE;
+ bof = PL_rsfp ? TRUE : FALSE;
if (bof) {
#ifdef PERLIO_IS_STDIO
# ifdef __GNU_LIBRARY__