projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gdb: remove unnecessary NULL checks before xfree
[deliverable/binutils-gdb.git]
/
gdb
/
corefile.c
diff --git
a/gdb/corefile.c
b/gdb/corefile.c
index 4ce1bb78f2829f869726e9171af5818bf15e9c9e..996e5301b27a336abbe60adfb2b16cd65fb874e6 100644
(file)
--- 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);
}
This page took
0.037751 seconds
and
4
git commands to generate.