aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--conf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index d0394a4..d347f1d 100644
--- a/conf.c
+++ b/conf.c
@@ -175,6 +175,7 @@ static int conf_ports(struct ctx *c, char optname, const char *optarg,
do {
int i, port;
+ errno = 0;
port = strtol(p, &sep, 10);
if (sep == p)
break;