summaryrefslogtreecommitdiffstats
path: root/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'log.c')
-rw-r--r--log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/log.c b/log.c
index c002663e..44b24c67 100644
--- a/log.c
+++ b/log.c
@@ -131,6 +131,9 @@ log_debug(const char *msg, ...)
{
va_list ap;
+ if (log_file == NULL)
+ return;
+
va_start(ap, msg);
log_vwrite(msg, ap);
va_end(ap);