summaryrefslogtreecommitdiffstats
path: root/grammar/rscript.l
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-07-03 13:10:37 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-07-03 13:10:37 +0200
commit1cdab4d2b548a0db54b5a2c5404f3f78e012113e (patch)
tree8b827e5bc63e61da3a57e71cc495326d8fbf462e /grammar/rscript.l
parent62e95c10ba84871fd5ad97fccd75664b07620013 (diff)
downloadrsyslog-1cdab4d2b548a0db54b5a2c5404f3f78e012113e.tar.gz
rsyslog-1cdab4d2b548a0db54b5a2c5404f3f78e012113e.tar.xz
rsyslog-1cdab4d2b548a0db54b5a2c5404f3f78e012113e.zip
milestone: support for action list added to grammar
Diffstat (limited to 'grammar/rscript.l')
-rw-r--r--grammar/rscript.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/grammar/rscript.l b/grammar/rscript.l
index ccc39a2f..750a3e81 100644
--- a/grammar/rscript.l
+++ b/grammar/rscript.l
@@ -105,8 +105,8 @@ static int preCommentState;
<INOBJ>. { printf("INOBJ: invalid char '%s'\n", yytext); }
/* CFSYSLINE is valid in all modes */
-\$[a-z]+.*$ { yylval.s = yytext; return CFSYSLINE; }
-<INOBJ>\$[a-z]+.*$ { yylval.s = yytext; return CFSYSLINE; }
+\$[a-z]+.*$ { yylval.s = strdup(yytext); return CFSYSLINE; }
+<INOBJ>\$[a-z]+.*$ { yylval.s = strdup(yytext); return CFSYSLINE; }
\#.*\n /* skip comments in input */
[\n\t ] /* drop whitespace */