From b99d9ea25830b4b2e384c180012ee0ddc23f1316 Mon Sep 17 00:00:00 2001
From: Damien George <damien.p.george@gmail.com>
Date: Wed, 15 Jan 2014 23:08:33 +0000
Subject: [PATCH] Add errno=0 before call.

---
 py/strtonum.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/py/strtonum.c b/py/strtonum.c
index 02c150668..48a746603 100644
--- a/py/strtonum.c
+++ b/py/strtonum.c
@@ -60,6 +60,7 @@ long strtonum(const char *restrict s, int base) {
         p--;
     }
 
+    errno = 0;
     found = strtol(p, &num, base);
     if (errno) {
         goto value_error;
-- 
GitLab