瀏覽代碼

Fix compile error

bel 9 年之前
父節點
當前提交
f9f5f5ce06
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -2668,7 +2668,7 @@ mg_stat(struct mg_connection *conn, const char *path, struct file *filep)
 	if (conn && is_file_in_memory(conn, path, filep)) {
 		/* filep->is_directory = 0; filep->gzipped = 0; .. already done by
 		 * memset */
-		last_modified = time(NULL);
+		filep->last_modified = time(NULL);
 		/* last_modified = now ... assumes the file may change during runtime,
 		 * so every mg_fopen call may return different data */
 		/* last_modified = conn->ctx.start_time;