mirror of
https://github.com/lammertb/libhttp.git
synced 2025-09-03 01:21:16 +03:00
don't close the error log if we didn't open it.
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user