mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 13:37:34 +08:00
squash QNX warning about execle() call
This commit is contained in:
parent
48750e67f6
commit
a639e10a4d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user