|
@@ -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)
|