[SR-Dev] git:master: core script parsing: minor fix: " at the end of file

Andrei Pelinescu-Onciul andrei at iptel.org
Wed May 6 18:34:47 CEST 2009


Module: sip-router
Branch: master
Commit: f84c93b38220f1480bd16fa30d1e3ffbb39d0c5d
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f84c93b38220f1480bd16fa30d1e3ffbb39d0c5d

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at 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 at 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);




More information about the sr-dev mailing list