mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-17 19:30:36 +00:00
squash QNX warning about execle() call
This commit is contained in:
1 parent
48750e67f6
commit
a639e10a4d
1 file changed
+2
-2
+2
-2
@@ -1795,9 +1795,9 @@ static process_id_t start_process(const char *interp, const char *cmd,
|
|||||||
signal(SIGCHLD, SIG_DFL);
|
signal(SIGCHLD, SIG_DFL);
|
||||||
|
|
||||||
if (interp == NULL) {
|
if (interp == NULL) {
|
||||||
execle(cmd, cmd, NULL, envp);
|
execle(cmd, cmd, (char *) 0, envp); // Using (char *) 0 to avoid warning
|
||||||
} else {
|
} else {
|
||||||
execle(interp, interp, cmd, NULL, envp);
|
execle(interp, interp, cmd, (char *) 0, envp);
|
||||||
}
|
}
|
||||||
snprintf(buf, sizeof(buf), "Status: 500\r\n\r\n"
|
snprintf(buf, sizeof(buf), "Status: 500\r\n\r\n"
|
||||||
"500 Server Error: %s%s%s: %s", interp == NULL ? "" : interp,
|
"500 Server Error: %s%s%s: %s", interp == NULL ? "" : interp,
|
||||||
|
|||||||
Reference in new issue
Block a user