No need to check the return value of para_strdup().
authorAndre Noll <maan@systemlinux.org>
Sun, 16 Nov 2008 00:22:45 +0000 (01:22 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 16 Nov 2008 00:22:45 +0000 (01:22 +0100)
exec.c

diff --git a/exec.c b/exec.c
index ca59f03..bafae24 100644 (file)
--- 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);