diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-08-09 21:02:11 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-08-09 21:02:11 +0000 |
| commit | fe3936ecf5ab65100535db2d3cc9cce58bb69b5d (patch) | |
| tree | 342113210cf63e5670ef3f9715919e600250d1c0 /lib | |
| parent | e52c05cd8079defe2c7524e61b3241174fa969d0 (diff) | |
lib: Remove unnecessary XSTRDUP
yy_scan_string duplicates its input
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/command_lex.l | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
