summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-07 18:21:58 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-07 18:21:58 +0000
commit2b5976624a008328c9eb1ed9bae407454941a4cd (patch)
treee30c081af710995038619935d74136b43a42be61 /pp_ctl.c
parent595f3c5ff72f459813d82afd2db09bc1b9304e2b (diff)
downloadperl-2b5976624a008328c9eb1ed9bae407454941a4cd.tar.gz
skip null siblings encountered by goto out of loopish block
(from Doug Lankshear) p4raw-id: //depot/perl@5598
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 22db833475..edbe7b19ab 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2385,10 +2385,12 @@ PP(pp_goto)
gotoprobe = PL_main_root;
break;
}
- retop = dofindlabel(gotoprobe, label,
- enterops, enterops + GOTO_DEPTH);
- if (retop)
- break;
+ if (gotoprobe) {
+ retop = dofindlabel(gotoprobe, label,
+ enterops, enterops + GOTO_DEPTH);
+ if (retop)
+ break;
+ }
PL_lastgotoprobe = gotoprobe;
}
if (!retop)