summaryrefslogtreecommitdiff
path: root/remake.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-03-05 07:13:12 +0000
committerPaul Smith <psmith@gnu.org>1999-03-05 07:13:12 +0000
commita6a9ebb54f67cb13a07dd3b815c258ae8c35b3ac (patch)
treecb34f435ff0d7400690485733f42e2335d4d163f /remake.c
parent9e6ba6a148aa6e4a6aed496d91bac44323325445 (diff)
downloadgunmake-a6a9ebb54f67cb13a07dd3b815c258ae8c35b3ac.tar.gz
* Define and use xstrdup() instead of strdup().
Diffstat (limited to 'remake.c')
-rw-r--r--remake.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/remake.c b/remake.c
index 4604ea5..b8b5c7f 100644
--- a/remake.c
+++ b/remake.c
@@ -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;