From: Quentin Young Date: Tue, 9 Aug 2016 21:02:11 +0000 (+0000) Subject: lib: Remove unnecessary XSTRDUP X-Git-Tag: frr-3.0-branchpoint~129^2~254 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=fe3936ecf5ab65100535db2d3cc9cce58bb69b5d;p=matthieu%2Ffrr.git lib: Remove unnecessary XSTRDUP yy_scan_string duplicates its input Signed-off-by: Quentin Young --- 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