Replace strsave() with xstrdup().

This commit is contained in:
Andrew Cagney
2001-01-31 01:24:03 +00:00
parent e191e0abe5
commit 4fcf66da88
19 changed files with 80 additions and 64 deletions

View File

@@ -1,5 +1,5 @@
/* Handle shared libraries for GDB, the GNU Debugger.
Copyright 1990, 91, 92, 93, 94, 95, 96, 98, 1999, 2000
Copyright 1990, 91, 92, 93, 94, 95, 96, 98, 1999, 2000, 2001
Free Software Foundation, Inc.
This file is part of GDB.
@@ -143,7 +143,7 @@ solib_open (char *in_pathname, char **found_pathname)
/* Done. If not found, tough luck. Return found_file and
(optionally) found_pathname. */
if (found_pathname != NULL && temp_pathname != NULL)
*found_pathname = strsave (temp_pathname);
*found_pathname = xstrdup (temp_pathname);
return found_file;
}