diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-07 18:21:58 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-07 18:21:58 +0000 |
commit | 2b5976624a008328c9eb1ed9bae407454941a4cd (patch) | |
tree | e30c081af710995038619935d74136b43a42be61 /pp_ctl.c | |
parent | 595f3c5ff72f459813d82afd2db09bc1b9304e2b (diff) | |
download | perl-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.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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) |