diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-06-13 22:39:29 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-06-13 23:27:25 -0700 |
commit | 6ebb5ba17e9b84312ccaaba031d33a2406b6059d (patch) | |
tree | 33d4ef825f8fc2131df8e10d9a0b41c9bb7adab4 /src | |
parent | 3e3032cfa044268cee76735823755db274025021 (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.
Diffstat (limited to 'src')
-rw-r--r-- | src/til.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |