mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
config: set to NULL before calling getline()
This fixes a crash on musl-based distros
This commit is contained in:
parent
ca5e693524
commit
4b81fa3eab
1 changed files with 1 additions and 0 deletions
1
config.c
1
config.c
|
|
@ -299,6 +299,7 @@ parse_config_file(FILE *f, struct config *conf, const char *path)
|
|||
errno = 0;
|
||||
lineno++;
|
||||
|
||||
_line = NULL;
|
||||
size_t count = 0;
|
||||
ssize_t ret = getline(&_line, &count, f);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue