Refactor code to avoid warnings

This commit is contained in:
2021-03-18 20:27:45 +01:00
parent 10464f3f30
commit c1d076db04
10 changed files with 79 additions and 48 deletions

View File

@ -130,7 +130,7 @@ int fastcgi_init(fastcgi_conn *conn, unsigned int client_num, unsigned int req_n
if (uri->pathinfo != NULL && strlen(uri->pathinfo) > 0) {
sprintf(buf0, "/%s", uri->pathinfo);
} else {
sprintf(buf0, "");
buf0[0] = 0;
}
param_ptr = fastcgi_add_param(param_ptr, "PATH_INFO", buf0);