summaryrefslogtreecommitdiff
path: root/keyword.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyword.c')
-rw-r--r--keyword.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/keyword.c b/keyword.c
index 2afe455..16db0a2 100644
--- a/keyword.c
+++ b/keyword.c
@@ -115,6 +115,8 @@ int parse_key_value_file(void *ret, void *ctx, const keyword **keywords, char *b
} else {
/* Get the rest of the line. */
rhs = strtok_r(tmp, "\n", &buf);
+ /* Remove any whitespace ahead of us. */
+ rhs = remove_trailing_whitespace(rhs);
}
/* Did we fail to parse the keyword? */