Daniel Rempel 9 lat temu
rodzic
commit
3ed3e9e736
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -1411,7 +1411,7 @@ mg_fopen(struct mg_connection *conn,
 	memset(filep, 0, sizeof(*filep));
 	memset(filep, 0, sizeof(*filep));
 
 
 	struct stat st;
 	struct stat st;
-	if (stat(filename, &st) == 0)
+	if (stat(path, &st) == 0)
 		filep->size = st.st_size;
 		filep->size = st.st_size;
 
 
 	if (!is_file_in_memory(conn, path, filep)) {
 	if (!is_file_in_memory(conn, path, filep)) {