summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-08-02 22:08:54 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2022-08-02 22:11:13 -0300
commitafe414d90ef6ce9a1c8437629b8299c126fd7044 (patch)
tree10aaa6225a1cd37f3e767174df3e5fe56473763c
parent5589b9898b0bd9bbdfdf3c78c532e9bb104d5c41 (diff)
keyword: Revert commit 5589b9898b0bd9bbdfdf3c78c532e9bb104d5c41
keyword: Remove trailing whitespace from the right hand side in `parse_key_value_file()` I didn't realize this would create a parsing bug.
-rw-r--r--keyword.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/keyword.c b/keyword.c
index d810f3c..2afe455 100644
--- a/keyword.c
+++ b/keyword.c
@@ -115,8 +115,6 @@ 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 = strtok_r(rhs, " \t\v\r\n", &tmp);
}
/* Did we fail to parse the keyword? */