diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-09-13 03:25:43 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-09-13 03:25:43 +0000 |
commit | 1189a94a32ae3258f75f6b7571b7a68e694d4ffe (patch) | |
tree | 22b2f3637b7d933b03f7c6ff842f6a495060880f /toke.c | |
parent | 6bc102ca57c5133ccb41282f9b318b89d8ec7a82 (diff) | |
download | perl-1189a94a32ae3258f75f6b7571b7a68e694d4ffe.tar.gz |
avoid assertion failure on C<@a'>
p4raw-id: //depot/perl@4133
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -213,8 +213,12 @@ S_no_op(pTHX_ char *what, char *s) char *oldbp = PL_bufptr; bool is_first = (PL_oldbufptr == PL_linestart); - assert(s >= oldbp); - PL_bufptr = s; + if (!s) + s = oldbp; + else { + assert(s >= oldbp); + PL_bufptr = s; + } yywarn(Perl_form(aTHX_ "%s found where operator expected", what)); if (is_first) Perl_warn(aTHX_ "\t(Missing semicolon on previous line?)\n"); |