Browse Source

Temporary fix for #244 is not required if #225 is applied

bel 9 years ago
parent
commit
16c02972e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -1479,7 +1479,7 @@ mg_fopen(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)); <-- remove this (issue #244) */
+	memset(filep, 0, sizeof(*filep));
 
 	struct stat st;
 	if (stat(path, &st) == 0)