1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-23 23:32:45 +00:00

Just use stdout if we never opened a log file

This commit is contained in:
Peter Evans 2018-01-03 20:47:41 -06:00
parent 14f2dcae1a
commit b1c2a2109e

View File

@ -62,10 +62,8 @@ log_write(int level, const char *fmt, ...)
{
va_list ap;
// Oh. Well, we can't write something if we have no log stream,
// right?
if (log_stream == NULL) {
return;
log_stream = stdout;
}
va_start(ap, fmt);