From fe3936ecf5ab65100535db2d3cc9cce58bb69b5d Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Tue, 9 Aug 2016 21:02:11 +0000 Subject: [PATCH] lib: Remove unnecessary XSTRDUP yy_scan_string duplicates its input Signed-off-by: Quentin Young --- lib/command_lex.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/command_lex.l b/lib/command_lex.l index b3276894f5..e5fc01e4c9 100644 --- a/lib/command_lex.l +++ b/lib/command_lex.l @@ -66,7 +66,7 @@ RANGE \({NUMBER}[ ]?\-[ ]?{NUMBER}\) void set_lexer_string (const char *string) { - buffer = yy_scan_string (XSTRDUP(MTYPE_TMP, string)); + buffer = yy_scan_string (string); } void