forked from poz/modfetch
fix crashing on empty line (Xd)
This commit is contained in:
parent
bfcf6fa157
commit
3704f16b53
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue