From 685b87d5e12e4e6cca85655fd32a15906f93b282 Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Wed, 14 Oct 2026 22:31:01 +0300 Subject: [PATCH] minor fix for parsing thing; --- src/configuration.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/configuration.c b/src/configuration.c index e8142a9..4874765 100644 --- a/src/configuration.c +++ b/src/configuration.c @@ -57,6 +57,7 @@ static char *strip_quotes(char *val) static int text2port(const char *value, int *port) { char *end; + errno = 0; long n = strtol(value, &end, 10); if (value == end || errno == ERANGE || *trim(end) != '\0' ||