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

This commit is contained in:
mlamb 2010-05-28 10:28:45 -04:00
parent c511671e33
commit 57157edc66

View File

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