adjusted _parse_key to also allow for configs without arguments

pull/19/head
Sara 2023-07-17 00:38:49 +02:00
parent baf75c9c78
commit 1ae19b5d04
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ void _parse_key(FILE* file, char* out) {
char c; char c;
do { do {
c = fgetc(file); c = fgetc(file);
if(c == ':') { if(c == ':' || c == ';') {
*out = '\0'; *out = '\0';
} else if(c == '#') { } else if(c == '#') {
freadto(file, '\n'); freadto(file, '\n');
@ -90,7 +90,7 @@ void _parse_key(FILE* file, char* out) {
*out = c; *out = c;
++out; ++out;
} }
} while(c != ':'); } while(c != ':' && c != ';');
} }
static static