diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-12 17:31:56 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-12 17:31:56 +0000 |
| commit | 4b81fa3eaba200834fc2a1180c49be48597a9756 (patch) | |
| tree | 5e0d0a12a42e50223aa8c7a41178081df1619274 | |
| parent | config: don't log a NULL path (diff) | |
config: set to NULL before calling getline()
This fixes a crash on musl-based distros
| -rw-r--r-- | config.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |
