summaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-11-27 21:55:17 -0500
committerDave Reisner <dreisner@archlinux.org>2014-11-27 21:55:17 -0500
commitd4ab6ef08723c2c47802fd56222bf6105919ec3b (patch)
tree3fd48e91d0ea5a2710fa6bb025b0a4c16e572bb6 /conf.c
parentea25d7e51c2236e739aef2718499781dd37ef53d (diff)
downloadexpac-d4ab6ef08723c2c47802fd56222bf6105919ec3b.tar.xz
conf: always trim the key name
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index 96e4d60..aef4cbf 100644
--- a/conf.c
+++ b/conf.c
@@ -155,12 +155,11 @@ static int parse_one_file(config_t *config, const char *filename, char **section
strsep(&val, "=");
strtrim(line);
+ strtrim(val);
if(strcmp(line, "Include") == 0) {
int k;
- strtrim(val);
-
k = parse_include(config, val, section);
if(k < 0) {
return k;