aboutsummaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c
index 54dd775..c06f70b 100644
--- a/src/config.c
+++ b/src/config.c
@@ -28,11 +28,11 @@ config_parse(char *content)
if (*buffer == '{') {
buffer++;
list_t *l = list_create(sizeof(char *));
- char *raw_array = remove_spaces(strsep(&buffer, "}"));
+ char *raw_array = strsep(&buffer, "}");
char *value = strsep(&raw_array, DELIM_ARRAY);
while (value != NULL) {
- list_add(l, strdup(value));
+ list_add(l, trim(value));
value = strsep(&raw_array, DELIM_ARRAY);
}