More expression fixes (bug #1548 again)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2883 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 22 years ago
parent e158ab2fe9
commit cf0659f7af

@ -341,9 +341,18 @@ ast_yylex (YYSTYPE *lvalp, YYLTYPE *yylloc, struct parser_control *karoto)
} }
else if( *t1 == 0 ) else if( *t1 == 0 )
{ {
/* we are done. That was quick */ if( t1 != karoto->ptrptr )
p = karoto->ptrptr; {
yylloc->last_column = t1 - karoto->argv; /* this is the last token */
p = karoto->ptrptr;
karoto->ptrptr = t1;
}
else
{
/* we are done. That was quick */
p = karoto->ptrptr;
yylloc->last_column = t1 - karoto->argv;
}
} }
if( *p == 0 ) if( *p == 0 )
p = 0; p = 0;

Loading…
Cancel
Save