config: set to NULL before calling getline()

This fixes a crash on musl-based distros
This commit is contained in:
Daniel Eklöf 2019-08-12 19:31:56 +02:00
parent ca5e693524
commit 4b81fa3eab
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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);