From: Doug Evans Date: Tue, 10 Jul 2012 03:49:25 +0000 (+0000) Subject: * buildsym.c (start_subfile): Remove unnecessary check for X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b74db4368dc89ddbba419ea4fa7acaa27df03bfd;p=binutils-gdb.git * buildsym.c (start_subfile): Remove unnecessary check for name == NULL. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4ebefdedd7f..c866c5b942b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2012-07-09 Doug Evans + * 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. diff --git a/gdb/buildsym.c b/gdb/buildsym.c index f1fb4be4f37..428d332fcc4 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -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. */