summaryrefslogtreecommitdiff
path: root/src/mod_cgi.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-07-13 01:21:26 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-09-04 08:08:26 -0400
commit9a2404cec66dbd4b85b18e86bf1af32d812d89e6 (patch)
treebb0d65cb88e50c474d939b0a89b73779c3c877e8 /src/mod_cgi.c
parent8492d0947a482c79c3119e815dd323e254802100 (diff)
downloadlighttpd-git-9a2404cec66dbd4b85b18e86bf1af32d812d89e6.tar.gz
[core] quiet compiler warnings
cast away signedness warning in request_check_hostname() mod_gnutls https_add_ssl_client_entries crts allocated if crt_size != 0 (which is already checked earlier in routine) report from FaceBook Infer static analysis tool (https://fbinfer.com/) - quiet dead store warnings - check return != NULL from allocation funcs
Diffstat (limited to 'src/mod_cgi.c')
-rw-r--r--src/mod_cgi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mod_cgi.c b/src/mod_cgi.c
index 4976102e..49f70105 100644
--- a/src/mod_cgi.c
+++ b/src/mod_cgi.c
@@ -616,7 +616,6 @@ static int cgi_create_env(request_st * const r, plugin_data * const p, handler_c
char *args[3];
int to_cgi_fds[2];
int from_cgi_fds[2];
- int dfd = -1;
UNUSED(p);
if (!buffer_is_blank(cgi_handler)) {
@@ -683,7 +682,7 @@ static int cgi_create_env(request_st * const r, plugin_data * const p, handler_c
args[i ] = NULL;
}
- dfd = fdevent_open_dirname(r->physical.path.ptr, r->conf.follow_symlink);
+ int dfd = fdevent_open_dirname(r->physical.path.ptr,r->conf.follow_symlink);
if (-1 == dfd) {
log_perror(r->conf.errh, __FILE__, __LINE__, "open dirname %s failed", r->physical.path.ptr);
}