]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 ca59f03d71e9da43667aec5c7b72025124bc9e9b..bafae240260ef386a1adfc77937fad458a27e40b 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);