瀏覽代碼

Fix build for NO_FILES configuration

bel2125 8 年之前
父節點
當前提交
787b338b6f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/civetweb.c

+ 2 - 1
src/civetweb.c

@@ -6498,6 +6498,8 @@ interpret_uri(struct mg_connection *conn, /* in/out: request (must be valid) */
               int *is_put_or_delete_request  /* out: put/delete a file? */
               int *is_put_or_delete_request  /* out: put/delete a file? */
               )
               )
 {
 {
+	char const *accept_encoding;
+
 #if !defined(NO_FILES)
 #if !defined(NO_FILES)
 	const char *uri = conn->request_info.local_uri;
 	const char *uri = conn->request_info.local_uri;
 	const char *root = conn->ctx->config[DOCUMENT_ROOT];
 	const char *root = conn->ctx->config[DOCUMENT_ROOT];
@@ -6505,7 +6507,6 @@ interpret_uri(struct mg_connection *conn, /* in/out: request (must be valid) */
 	struct vec a, b;
 	struct vec a, b;
 	int match_len;
 	int match_len;
 	char gz_path[PATH_MAX];
 	char gz_path[PATH_MAX];
-	char const *accept_encoding;
 	int truncated;
 	int truncated;
 #if !defined(NO_CGI) || defined(USE_LUA) || defined(USE_DUKTAPE)
 #if !defined(NO_CGI) || defined(USE_LUA) || defined(USE_DUKTAPE)
 	char *tmp_str;
 	char *tmp_str;