summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.c b/config.c
index 4ccd3c3..47d0572 100644
--- a/config.c
+++ b/config.c
@@ -258,7 +258,7 @@ out:
/* Returns true if theres data left to parse in buf */
bool
config_parse_line(struct cfg *cfg, char **buf, struct cfg_key_value_map *kvmap,
- int *rkey, union cfg_value *rvalue)
+ int *rkey, const char **rkeyname, union cfg_value *rvalue)
{
char *line, *tmp, *key;
int i;
@@ -346,12 +346,14 @@ config_parse_line(struct cfg *cfg, char **buf, struct cfg_key_value_map *kvmap,
}
*rkey = kvmap[i].key_value;
+ *rkeyname = kvmap[i].key_name;
return true;
}
out:
fprintf(stderr, "Invalid line\n");
*rkey = 0;
+ *rkeyname = NULL;
return true;
}