diff options
Diffstat (limited to 'gdb/corefile.c')
-rw-r--r-- | gdb/corefile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/corefile.c b/gdb/corefile.c index 4ce1bb78f28..996e5301b27 100644 --- a/gdb/corefile.c +++ b/gdb/corefile.c @@ -472,8 +472,7 @@ complete_set_gnutarget (struct cmd_list_element *cmd, void set_gnutarget (const char *newtarget) { - if (gnutarget_string != NULL) - xfree (gnutarget_string); + xfree (gnutarget_string); gnutarget_string = xstrdup (newtarget); set_gnutarget_command (NULL, 0, NULL); } |