From afe414d90ef6ce9a1c8437629b8299c126fd7044 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Tue, 2 Aug 2022 22:08:54 -0300 Subject: 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. --- keyword.c | 2 -- 1 file changed, 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? */ -- cgit v1.2.3-13-gbd6f