lib: Remove unnecessary XSTRDUP

yy_scan_string duplicates its input

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
Quentin Young 2016-08-09 21:02:11 +00:00
parent e52c05cd80
commit fe3936ecf5

View file

@ -66,7 +66,7 @@ RANGE \({NUMBER}[ ]?\-[ ]?{NUMBER}\)
void void
set_lexer_string (const char *string) set_lexer_string (const char *string)
{ {
buffer = yy_scan_string (XSTRDUP(MTYPE_TMP, string)); buffer = yy_scan_string (string);
} }
void void