summaryrefslogtreecommitdiff
path: root/src/core/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/log.c')
-rw-r--r--src/core/log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/log.c b/src/core/log.c
index d68265fe..9617b0c5 100644
--- a/src/core/log.c
+++ b/src/core/log.c
@@ -243,6 +243,9 @@ void log_file_write(SERVER_REC *server, const char *item, int level,
g_return_if_fail(str != NULL);
+ if (logs == NULL)
+ return;
+
fallbacks = NULL; found = FALSE;
for (tmp = logs; tmp != NULL; tmp = tmp->next) {