소스 검색

fix a typo

Daniel Rempel 9 년 전
부모
커밋
3ed3e9e736
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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));
 
 	struct stat st;
-	if (stat(filename, &st) == 0)
+	if (stat(path, &st) == 0)
 		filep->size = st.st_size;
 
 	if (!is_file_in_memory(conn, path, filep)) {