summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/til.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/til.c b/src/til.c
index e71b6a0..c00cf93 100644
--- a/src/til.c
+++ b/src/til.c
@@ -278,12 +278,13 @@ int til_module_setup(const til_settings_t *settings, til_setting_t **res_setting
til_setting_desc_t *desc;
int r;
- for (unsigned i = 0; i < nelems(modules); i++) {
+ for (unsigned i = 0, j = 0; i < nelems(modules); i++) {
if ((modules[i]->flags & TIL_MODULE_EXPERIMENTAL))
continue;
- values[i] = modules[i]->name;
- annotations[i] = modules[i]->description;
+ values[j] = modules[i]->name;
+ annotations[j] = modules[i]->description;
+ j++;
}
r = til_setting_desc_new( settings,
© All Rights Reserved