Procházet zdrojové kódy

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

bel před 8 roky
rodič
revize
ca64090a6e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);