From 4ea4767ef9450407fd88f20b8b07aaedc3f95a1b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 28 Oct 2006 15:41:32 +0000 Subject: [PATCH] reset errno before testing it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/string.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/string.cpp b/src/common/string.cpp index 62d81aab29..20608e466b 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -1686,6 +1686,8 @@ bool wxStringToIntType(const wxChar *start, wxCHECK_MSG( val, false, _T("NULL output pointer") ); wxASSERT_MSG( !base || (base > 1 && base <= 36), _T("invalid base") ); + errno = 0; + wxChar *end; *val = (*func)(start, &end, base); -- 2.45.2