mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
always trim the trailing ';'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -378,9 +378,7 @@ includes { STORE_POS; return KW_INCLUDES;}
|
||||
<semic>{NOSEMIC}; {
|
||||
STORE_LOC;
|
||||
yylval->str = strdup(yytext);
|
||||
/* XXX maybe the truncation should be unconditional ? */
|
||||
if(yyleng > 1)
|
||||
*(yylval->str+yyleng-1)=0;
|
||||
yylval->str[yyleng-1] = '\0';
|
||||
unput(';');
|
||||
BEGIN(0);
|
||||
return word;
|
||||
|
Reference in New Issue
Block a user