Commit 57157edc authored by mlamb's avatar mlamb

don't close the error log if we didn't open it.

parent c511671e
...@@ -477,7 +477,7 @@ cry(struct mg_connection *conn, const char *fmt, ...) ...@@ -477,7 +477,7 @@ cry(struct mg_connection *conn, const char *fmt, ...)
(void) fprintf(fp, "%s", buf); (void) fprintf(fp, "%s", buf);
fputc('\n', fp); fputc('\n', fp);
funlockfile(fp); funlockfile(fp);
/* (void) fclose(fp); */ if (fp != stderr) fclose(fp);
} }
} }
conn->request_info.log_message = NULL; conn->request_info.log_message = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment