[mod_ssi] init status var before waitpid()

This commit is contained in:
Glenn Strauss 2020-09-25 21:23:53 -04:00
parent 352d5d776d
commit 76bd8bba9a
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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 */