Fix snapshot build error

master
Elias Fleckenstein 2022-01-22 14:16:12 +01:00
parent 8005e724b5
commit d8982996ab
No known key found for this signature in database
GPG Key ID: 06927A5199D6C9B2
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ void config_read(char *path, ConfigEntry *entries, size_t num_entries)
while (! feof(f)) {
char key[BUFSIZ];
fscanf(f, "%s", key);
if (! fscanf(f, "%s", key))
break;
bool found = false;
for (size_t i = 0; i < num_entries; i++) {