Module: sip-router
Branch: master
Commit: f84c93b38220f1480bd16fa30d1e3ffbb39d0c5d
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f84c93b…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed May 6 18:32:46 2009 +0200
core script parsing: minor fix: " at the end of file
Having a closing quote at the end of file generated a parse error.
Reported-by: Henning Westerholt <henning.westerholt(a)1und1.de>
---
cfg.lex | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/cfg.lex b/cfg.lex
index 167fc95..957e27f 100644
--- a/cfg.lex
+++ b/cfg.lex
@@ -952,6 +952,7 @@ EAT_ABLE [\ \t\b\r]
<STRING1>{QUOTES} { count_more();
yytext[yyleng-1]=0; yyleng--;
addstr(&s_buf, yytext, yyleng);
+ state=STR_BETWEEN_S;
BEGIN(STR_BETWEEN);
}
<STRING2>{TICK} { count_more(); state=old_state; BEGIN(old_initial);