aboutsummaryrefslogtreecommitdiff
path: root/gprof/source.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-06-18 21:37:38 +0000
committerIan Lance Taylor <ian@airs.com>1996-06-18 21:37:38 +0000
commitd75ea6de3dcd6090e4263f748724c6357d760a9f (patch)
tree7916963008f7625c102ea2c4287d86f1b86538c9 /gprof/source.c
parentd945323396c4007b984c10d638305e1add9abd6a (diff)
downloadgdb-d75ea6de3dcd6090e4263f748724c6357d760a9f.zip
gdb-d75ea6de3dcd6090e4263f748724c6357d760a9f.tar.gz
gdb-d75ea6de3dcd6090e4263f748724c6357d760a9f.tar.bz2
* core.c (core_create_line_syms): Use xstrdup rather than strdup.
* source.c (source_file_lookup_path): Likewise.
Diffstat (limited to 'gprof/source.c')
-rw-r--r--gprof/source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gprof/source.c b/gprof/source.c
index b0c6ecd..4421e3f 100644
--- a/gprof/source.c
+++ b/gprof/source.c
@@ -36,7 +36,7 @@ DEFUN (source_file_lookup_path, (path), const char *path)
sf = (Source_File *) xmalloc (sizeof (*sf));
memset (sf, 0, sizeof (*sf));
- sf->name = strdup (path);
+ sf->name = xstrdup (path);
sf->next = first_src_file;
first_src_file = sf;
}