diff options
author | Paul Smith <psmith@gnu.org> | 1999-03-05 07:13:12 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 1999-03-05 07:13:12 +0000 |
commit | a6a9ebb54f67cb13a07dd3b815c258ae8c35b3ac (patch) | |
tree | cb34f435ff0d7400690485733f42e2335d4d163f /remake.c | |
parent | 9e6ba6a148aa6e4a6aed496d91bac44323325445 (diff) | |
download | gunmake-a6a9ebb54f67cb13a07dd3b815c258ae8c35b3ac.tar.gz |
* Define and use xstrdup() instead of strdup().
Diffstat (limited to 'remake.c')
-rw-r--r-- | remake.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1208,7 +1208,7 @@ library_search (lib, mtime_ptr) int save = warn_undefined_variables_flag; warn_undefined_variables_flag = 0; - libpatterns = strdup (variable_expand ("$(strip $(.LIBPATTERNS))")); + libpatterns = xstrdup (variable_expand ("$(strip $(.LIBPATTERNS))")); warn_undefined_variables_flag = save; } @@ -1249,7 +1249,7 @@ library_search (lib, mtime_ptr) mtime = name_mtime (libbuf); if (mtime != (FILE_TIMESTAMP) -1) { - *lib = strdup (libbuf); + *lib = xstrdup (libbuf); if (mtime_ptr != 0) *mtime_ptr = mtime; return 1; @@ -1289,7 +1289,7 @@ library_search (lib, mtime_ptr) mtime = name_mtime (buf); if (mtime != (FILE_TIMESTAMP) -1) { - *lib = strdup (buf); + *lib = xstrdup (buf); if (mtime_ptr != 0) *mtime_ptr = mtime; return 1; |