From 524f9e0399ee5fdd263c832c798020232dbf18d8 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Tue, 26 Dec 2023 15:11:28 +0000 Subject: [PATCH] logging: Set log function to default when unset --- src/logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logging.c b/src/logging.c index d43cb95..069b589 100644 --- a/src/logging.c +++ b/src/logging.c @@ -183,7 +183,7 @@ void nvnc_set_log_level(enum nvnc_log_level level) EXPORT void nvnc_set_log_fn(nvnc_log_fn fn) { - log_fn = fn; + log_fn = fn ? fn : nvnc_default_logger; } EXPORT