Skip to content
Snippets Groups Projects
Commit 57157edc authored by mlamb's avatar mlamb
Browse files

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

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