diff options
Diffstat (limited to 'src/conf.c')
-rw-r--r-- | src/conf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/conf.c b/src/conf.c index 20cf4be8e..ac08d7845 100644 --- a/src/conf.c +++ b/src/conf.c @@ -139,6 +139,7 @@ config_new_param(const char *value, int line) ret->num_block_params = 0; ret->block_params = NULL; + ret->used = false; return ret; } @@ -210,6 +211,7 @@ config_add_block_param(struct config_param * param, const char *name, bp->name = g_strdup(name); bp->value = g_strdup(value); bp->line = line; + bp->used = false; } static struct config_param * @@ -356,7 +358,7 @@ config_get_next_param(const char *name, const struct config_param * last) return NULL; param = node->data; - + param->used = true; return param; } @@ -418,6 +420,7 @@ config_get_block_param(const struct config_param * param, const char *name) for (unsigned i = 0; i < param->num_block_params; i++) { if (0 == strcmp(name, param->block_params[i].name)) { struct block_param *bp = ¶m->block_params[i]; + bp->used = true; return bp; } } |