aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-07-29 19:27:27 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-07-29 19:27:27 +0000
commitc0a7c7bf0d4412fd9436962704cb26f9596e529f (patch)
tree51b4b79308e0589e313c513d16974343f27606bc
parentunicode-mode: ‘q’ aborts Unicode input mode (diff)
config: reset errno before calling getline() again
Related to #1107
-rw-r--r--config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.c b/config.c
index 7a746aea..fbeab3e6 100644
--- a/config.c
+++ b/config.c
@@ -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) {