* buildsym.c (start_subfile): Remove unnecessary check for
authorDoug Evans <dje@google.com>
Tue, 10 Jul 2012 03:49:25 +0000 (03:49 +0000)
committerDoug Evans <dje@google.com>
Tue, 10 Jul 2012 03:49:25 +0000 (03:49 +0000)
name == NULL.

gdb/ChangeLog
gdb/buildsym.c

index 4ebefdedd7f1b807079cfddec9fca491d4c39912..c866c5b942b73e3c0cc5f327ba2fbd9bcd81712c 100644 (file)
@@ -1,5 +1,8 @@
 2012-07-09  Doug Evans  <dje@google.com>
 
+       * buildsym.c (start_subfile): Remove unnecessary check for
+       name == NULL.
+
        * psymtab.c (allocate_psymtab): Use host_address_to_string.
 
        * dwarf2read.c (load_full_type_unit): Simplify.
index f1fb4be4f379e36e3e57eb63b798c1b228ae4e2c..428d332fcc4bd3fb3e7c2671813d34c75aa76df3 100644 (file)
@@ -572,7 +572,7 @@ start_subfile (const char *name, const char *dirname)
   current_subfile = subfile;
 
   /* Save its name and compilation directory name.  */
-  subfile->name = (name == NULL) ? NULL : xstrdup (name);
+  subfile->name = xstrdup (name);
   subfile->dirname = (dirname == NULL) ? NULL : xstrdup (dirname);
 
   /* Initialize line-number recording for this subfile.  */