diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-12-02 14:12:44 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-12-02 14:14:01 -0500 |
commit | a6ea2592a983a67f7c537fb97eab7c9e9ba675c7 (patch) | |
tree | fa37ec45fd9889ddea07b8e6c17a9405e94f887a /gdb/maint-test-settings.c | |
parent | 117e35f51972acd1f29fd249ef20343258ef5256 (diff) | |
download | gdb-a6ea2592a983a67f7c537fb97eab7c9e9ba675c7.zip gdb-a6ea2592a983a67f7c537fb97eab7c9e9ba675c7.tar.gz gdb-a6ea2592a983a67f7c537fb97eab7c9e9ba675c7.tar.bz2 |
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
Diffstat (limited to 'gdb/maint-test-settings.c')
-rw-r--r-- | gdb/maint-test-settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/maint-test-settings.c b/gdb/maint-test-settings.c index 9f50088..ae61caa 100644 --- a/gdb/maint-test-settings.c +++ b/gdb/maint-test-settings.c @@ -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, _("\ |