]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
When a quoted string is encountered, don't forget to copy it to the
authorMartin Mares <mj@ucw.cz>
Sun, 16 Jan 2000 23:36:53 +0000 (23:36 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 16 Jan 2000 23:36:53 +0000 (23:36 +0000)
config pool before passing it to the parser.

conf/cf-lex.l

index 954ad6b444ac3e3bbaf155dc183291fd4e8eb4c5..cd6699fda439d4511ca4fec74c79fcc09100367b 100644 (file)
@@ -144,8 +144,8 @@ WHITE [ \t]
 }
 
 ["][^"\n]*["] {
-  cf_lval.t = yytext+1;
   yytext[yyleng-1] = 0;
+  cf_lval.t = cfg_strdup(yytext+1);
   return TEXT;
 }