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 /job.c | |
parent | 9e6ba6a148aa6e4a6aed496d91bac44323325445 (diff) | |
download | gunmake-a6a9ebb54f67cb13a07dd3b815c258ae8c35b3ac.tar.gz |
* Define and use xstrdup() instead of strdup().
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |