diff options
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |