summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/til.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/til.c b/src/til.c
index fdcce68..c5c5eae 100644
--- a/src/til.c
+++ b/src/til.c
@@ -512,7 +512,10 @@ int til_module_setup(const til_settings_t *settings, til_setting_t **res_setting
if (module->setup)
return module->setup(settings, res_setting, res_desc, res_setup);
- return til_module_setup_finalize(module, settings, res_setup);
+ if (res_setup)
+ return til_module_setup_finalize(module, settings, res_setup);
+
+ return 0;
}
© All Rights Reserved