config: reset errno before calling getline() again

Related to #1107
This commit is contained in:
Daniel Eklöf 2022-07-29 21:27:27 +02:00
parent 0cbd99710b
commit c0a7c7bf0d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -2639,6 +2639,9 @@ parse_config_file(FILE *f, struct config *conf, const char *path, bool errors_ar
if (!section_parser(ctx))
error_or_continue();
/* For next iteration of getline() */
errno = 0;
}
if (errno != 0) {