From 564f5c5ed8a02ddca5d37e91d942d78493604d7e Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 16 Nov 2008 01:22:45 +0100 Subject: [PATCH] No need to check the return value of para_strdup(). --- exec.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/exec.c b/exec.c index ca59f03d..bafae240 100644 --- a/exec.c +++ b/exec.c @@ -139,8 +139,6 @@ int para_exec_cmdline_pid(pid_t *pid, const char *cmdline, int *fds) char **argv; char *tmp = para_strdup(cmdline); - if (!tmp) - exit(EXIT_FAILURE); argc = split_args(tmp, &argv, " \t"); ret = para_exec(pid, argv[0], argv, fds); free(argv); -- 2.39.5