Remove redundant null-pointer test before free().
authorChristoph Mallon <christoph.mallon@gmx.de>
Sun, 13 May 2012 07:06:19 +0000 (09:06 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sun, 13 May 2012 11:06:12 +0000 (13:06 +0200)
ir/be/bedwarf.c

index c270ff0..beea2bb 100644 (file)
@@ -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);
 }