summaryrefslogtreecommitdiff
path: root/job.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 /job.c
parent9e6ba6a148aa6e4a6aed496d91bac44323325445 (diff)
downloadgunmake-a6a9ebb54f67cb13a07dd3b815c258ae8c35b3ac.tar.gz
* Define and use xstrdup() instead of strdup().
Diffstat (limited to 'job.c')
-rw-r--r--job.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/job.c b/job.c
index 5ea6067..87f22a2 100644
--- a/job.c
+++ b/job.c
@@ -2291,10 +2291,10 @@ construct_command_argv_internal (line, restp, shell, ifs, batch_filename_ptr)
/* create argv */
new_argv = (char **) xmalloc(3 * sizeof(char *));
if (unixy_shell) {
- new_argv[0] = strdup (shell);
+ new_argv[0] = xstrdup (shell);
new_argv[1] = *batch_filename_ptr; /* only argv[0] gets freed later */
} else {
- new_argv[0] = strdup (*batch_filename_ptr);
+ new_argv[0] = xstrdup (*batch_filename_ptr);
new_argv[1] = NULL;
}
new_argv[2] = NULL;