squash QNX warning about execle() call

This commit is contained in:
Sergey Lyubka 2014-06-17 13:28:45 +01:00
parent 48750e67f6
commit a639e10a4d

View File

@ -1795,9 +1795,9 @@ static process_id_t start_process(const char *interp, const char *cmd,
signal(SIGCHLD, SIG_DFL);
if (interp == NULL) {
execle(cmd, cmd, NULL, envp);
execle(cmd, cmd, (char *) 0, envp); // Using (char *) 0 to avoid warning
} else {
execle(interp, interp, cmd, NULL, envp);
execle(interp, interp, cmd, (char *) 0, envp);
}
snprintf(buf, sizeof(buf), "Status: 500\r\n\r\n"
"500 Server Error: %s%s%s: %s", interp == NULL ? "" : interp,