From: Andre Noll Date: Sun, 16 Nov 2008 00:22:45 +0000 (+0100) Subject: No need to check the return value of para_strdup(). X-Git-Tag: v0.3.3~30 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=564f5c5ed8a02ddca5d37e91d942d78493604d7e No need to check the return value of para_strdup(). --- 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);