aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-07-10 03:49:25 +0000
committerDoug Evans <dje@google.com>2012-07-10 03:49:25 +0000
commitb74db4368dc89ddbba419ea4fa7acaa27df03bfd (patch)
tree28903c208d84ee21eb99be96521de57bea9d85d9 /gdb/buildsym.c
parentfd55216c81fd25259ef30a5914ee82b727eddd8b (diff)
downloadgdb-b74db4368dc89ddbba419ea4fa7acaa27df03bfd.zip
gdb-b74db4368dc89ddbba419ea4fa7acaa27df03bfd.tar.gz
gdb-b74db4368dc89ddbba419ea4fa7acaa27df03bfd.tar.bz2
* buildsym.c (start_subfile): Remove unnecessary check for
name == NULL.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index f1fb4be..428d332 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. */