aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2024-11-13 11:53:29 +0100
committerJan200101 <sentrycraft123@gmail.com>2024-11-13 11:53:29 +0100
commit8601a8cdc5cd492bcd7686148b81ac9eae8d8bdd (patch)
tree23cdd6cf80c36adcc70e4dfa6f1509fd7aa77796 /src/parser.c
parent43853679ef3f34e76ea6eca7c4edd96a48b296df (diff)
downloadcgci-master.tar.gz
cgci-master.zip
Prevent config key from being reassigned while parsingHEADmaster
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c2
1 files changed, 1 insertions, 1 deletions
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';