fix crashing on empty line (Xd)

This commit is contained in:
jacekpoz 2024-02-09 13:54:29 +01:00
parent bfcf6fa157
commit 3704f16b53
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -133,6 +133,8 @@ Config parse_config(FILE *config_file) {
size_t module_index = 0;
while ((read = getline(&line, &len, config_file)) != -1) {
if (read == 1)
continue;
// if config is passed
if (line[read - 2u] == '{') {
if (in_config) {