From 01a058d29b42c11d5a9534debe108ef1d63a5d0d Mon Sep 17 00:00:00 2001 From: Pavel Pimenov <pavel.pimenov@gmail.com> Date: Sun, 27 Jul 2014 13:10:49 +0400 Subject: [PATCH] Remove file_stat_t st_cgi; --- mongoose.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index ec5515277..0edd69bdb 100644 --- a/mongoose.c +++ b/mongoose.c @@ -2332,7 +2332,6 @@ static int convert_uri_to_file_name(struct connection *conn, char *buf, const char *rewrites = conn->server->config_options[URL_REWRITES]; const char *root = conn->server->config_options[DOCUMENT_ROOT]; #ifndef MONGOOSE_NO_CGI - file_stat_t st_cgi; const char *cgi_pat = conn->server->config_options[CGI_PATTERN]; char *p; #endif @@ -2376,7 +2375,7 @@ static int convert_uri_to_file_name(struct connection *conn, char *buf, if (*p == '/') { *p = '\0'; if (mg_match_prefix(cgi_pat, strlen(cgi_pat), buf) > 0 && - !stat(buf, &st_cgi)) { + !stat(buf, st)) { DBG(("!!!! [%s]", buf)); *p = '/'; conn->path_info = mg_strdup(p); -- GitLab