xstrdup xargs cleanup from Jeff Garzik

This commit is contained in:
Eric Andersen 2001-03-23 17:11:22 +00:00
parent 6b2c23d847
commit 6f3240abf9
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ int xargs_main(int argc, char **argv)
/* Store the command to be executed (taken from the command line) */
if (argc == 1) {
/* default behavior is to echo all the filenames */
cmd_to_be_executed = strdup("/bin/echo ");
cmd_to_be_executed = xstrdup("/bin/echo ");
} else {
/* concatenate all the arguments passed to xargs together */
int i;

View File

@ -45,7 +45,7 @@ int xargs_main(int argc, char **argv)
/* Store the command to be executed (taken from the command line) */
if (argc == 1) {
/* default behavior is to echo all the filenames */
cmd_to_be_executed = strdup("/bin/echo ");
cmd_to_be_executed = xstrdup("/bin/echo ");
} else {
/* concatenate all the arguments passed to xargs together */
int i;