From 2c15fd9c9e0f88948281916ca775aad118ea3dd7 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 5 Aug 2023 21:36:47 -0700 Subject: til: fix til_module_setup_full() exclusions Stupid bug in untested/unused exclusions handling --- src/til.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/til.c b/src/til.c index 4fa42dd..c7afb3f 100644 --- a/src/til.c +++ b/src/til.c @@ -388,14 +388,14 @@ int til_module_setup_full(const til_settings_t *settings, til_setting_t **res_se continue; if (exclusions) { - const char *excl = *exclusions; + const char **excl = exclusions; - for (; excl; excl++) { - if (!strcasecmp(excl, modules[i]->name)) + for (; *excl; excl++) { + if (!strcasecmp(*excl, modules[i]->name)) break; } - if (excl) + if (*excl) continue; } -- cgit v1.2.3