forked from Mirror/frr
lib: Remove unnecessary XSTRDUP
yy_scan_string duplicates its input Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
e52c05cd80
commit
fe3936ecf5
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue