diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-08-05 21:36:47 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-08-05 21:36:47 -0700 |
commit | 2c15fd9c9e0f88948281916ca775aad118ea3dd7 (patch) | |
tree | a90a1b1f391ff5b8a37b7531b7cf06b2d4c920ab /src | |
parent | 7315b7c6f0a03f994ec20802ad4ade4cd9280178 (diff) |
til: fix til_module_setup_full() exclusions
Stupid bug in untested/unused exclusions handling
Diffstat (limited to 'src')
-rw-r--r-- | src/til.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |