ソースを参照

Temporary fix for mg_fopen (see #363, #246)

bel 8 年 前
コミット
ca64090a6e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -1931,7 +1931,7 @@ mg_fopen(const struct mg_connection *conn,
 	/* TODO (high): mg_fopen should only open a file, while mg_stat should
 	 * only get the file status. They should not work on different members of
 	 * the same structure (bad cohesion). */
-	memset(filep, 0, sizeof(*filep));
+	/* memset(filep, 0, sizeof(*filep)); */
 
 	if (stat(path, &st) == 0) {
 		filep->size = (uint64_t)(st.st_size);