logging: Set log function to default when unset

pull/110/head
Andri Yngvason 2023-12-26 15:11:28 +00:00
parent 4691a35b7b
commit 524f9e0399
1 changed files with 1 additions and 1 deletions

View File

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