gdb: remove unexpected xstrdup in _initialize_maint_test_settings

That xstrdup is not correct, since we are assigning an std::string.  The
result of xstrdup is used to initialize the string, and then lost
forever.  Remove it.

Change-Id: Ief7771055e4bfd643ef3b285ec9fb7b1bfd14335
This commit is contained in:
Simon Marchi
2021-12-02 14:12:44 -05:00
parent 117e35f519
commit a6ea2592a9
+1 -1
View File
@@ -83,7 +83,7 @@ void _initialize_maint_test_settings ();
void
_initialize_maint_test_settings ()
{
maintenance_test_settings_filename = xstrdup ("/foo/bar");
maintenance_test_settings_filename = "/foo/bar";
add_setshow_prefix_cmd ("test-settings", class_maintenance,
_("\