[mod_ssi] init status var before waitpid()
This commit is contained in:
parent
352d5d776d
commit
76bd8bba9a
|
@ -2040,7 +2040,7 @@ int config_parse_cmd(server *srv, config_t *context, const char *cmd) {
|
|||
else {
|
||||
ssize_t rd;
|
||||
pid_t wpid;
|
||||
int wstatus;
|
||||
int wstatus = 0;
|
||||
buffer *out = buffer_init();
|
||||
close(fds[1]);
|
||||
fds[1] = -1;
|
||||
|
|
|
@ -798,7 +798,7 @@ static int process_ssi_stmt(request_st * const r, handler_ctx * const p, const c
|
|||
log_perror(errh, __FILE__, __LINE__, "spawning exec failed: %s", cmd);
|
||||
} else {
|
||||
struct stat stb;
|
||||
int status;
|
||||
int status = 0;
|
||||
|
||||
/* wait for the client to end */
|
||||
/* NOTE: synchronous; blocks entire lighttpd server */
|
||||
|
|
Loading…
Reference in New Issue