summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-08-05 21:36:47 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-08-05 21:36:47 -0700
commit2c15fd9c9e0f88948281916ca775aad118ea3dd7 (patch)
treea90a1b1f391ff5b8a37b7531b7cf06b2d4c920ab /src
parent7315b7c6f0a03f994ec20802ad4ade4cd9280178 (diff)
til: fix til_module_setup_full() exclusions
Stupid bug in untested/unused exclusions handling
Diffstat (limited to 'src')
-rw-r--r--src/til.c8
1 files 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;
}
© All Rights Reserved