From 7aeb4b1dbb822c34e95671ad643aa72c01debf5d Mon Sep 17 00:00:00 2001 From: reshke Date: Thu, 18 Mar 2021 22:29:54 +0500 Subject: [PATCH] add commit to empty brackets --- sources/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/module.c b/sources/module.c index d23c3d5e..0e19f06b 100644 --- a/sources/module.c +++ b/sources/module.c @@ -55,6 +55,7 @@ int od_target_module_add(od_logger_t *logger, od_module_t *modules, module_exists: if (logger == NULL) { + /* most probably its logger is not ready yet */ } else { od_log(logger, "od_load_module", NULL, NULL, "od_load_module: skip load module %s: was already loaded!", @@ -66,8 +67,7 @@ error_close_handle: od_dlclose(handle); error: err = od_dlerror(); - if (logger == NULL) { - } else { + if (logger) { od_log(logger, "od_load_module", NULL, NULL, "od_load_module: failed to load module %s", err); }