From 8601a8cdc5cd492bcd7686148b81ac9eae8d8bdd Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Wed, 13 Nov 2024 11:53:29 +0100 Subject: Prevent config key from being reassigned while parsing --- src/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/parser.c b/src/parser.c index cd7e672..c8acbbe 100644 --- a/src/parser.c +++ b/src/parser.c @@ -77,7 +77,7 @@ void parse_config() head = ++tail; continue; } - else if (*tail == '=') + else if (*tail == '=' && !key) { key = head; *tail = '\0'; -- cgit v1.2.3