summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-06-13 22:39:29 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-06-13 23:27:25 -0700
commit6ebb5ba17e9b84312ccaaba031d33a2406b6059d (patch)
tree33d4ef825f8fc2131df8e10d9a0b41c9bb7adab4
parent3e3032cfa044268cee76735823755db274025021 (diff)
til: til_module_setup() needs to finalize when no .setup()
Commit 24911280 made til_setup_t required, and most setup code has already adopted til_module_setup_finalize() added in c94e4683 for this purpose. But til_module_setup()'s fall-through case when there's no til_module_t.setup() on the module being setup was missed. This broke running simple modules without a .setup() directly like --module=roto, oops. Fix is simple.
-rw-r--r--src/til.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/til.c b/src/til.c
index fd9b167..fec6b46 100644
--- a/src/til.c
+++ b/src/til.c
@@ -511,7 +511,7 @@ 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 0;
+ return til_module_setup_finalize(module, settings, res_setup);
}
© All Rights Reserved