blob: c9140a38cdbf7299df78c57b1695a10b2401016c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
From d4ab6ef08723c2c47802fd56222bf6105919ec3b Mon Sep 17 00:00:00 2001
From: Dave Reisner <dreisner@archlinux.org>
Date: Thu, 27 Nov 2014 21:55:17 -0500
Subject: [PATCH] conf: always trim the key name
---
conf.c | 3 +--
1 file changed, 1 insertion(+), 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;
--
2.1.3
|