projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcff73b
)
Remove redundant null-pointer test before free().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sun, 13 May 2012 07:06:19 +0000
(09:06 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sun, 13 May 2012 11:06:12 +0000
(13:06 +0200)
ir/be/bedwarf.c
patch
|
blob
|
history
diff --git
a/ir/be/bedwarf.c
b/ir/be/bedwarf.c
index
c270ff0
..
beea2bb
100644
(file)
--- a/
ir/be/bedwarf.c
+++ b/
ir/be/bedwarf.c
@@
-972,8
+972,7
@@
void be_dwarf_set_source_language(dwarf_source_language new_language)
void be_dwarf_set_compilation_directory(const char *new_comp_dir)
{
- if (comp_dir != NULL)
- xfree(comp_dir);
+ xfree(comp_dir);
comp_dir = xstrdup(new_comp_dir);
}