From: Vadim Zeitlin Date: Sat, 28 Oct 2006 15:41:32 +0000 (+0000) Subject: reset errno before testing it X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4ea4767ef9450407fd88f20b8b07aaedc3f95a1b?ds=sidebyside reset errno before testing it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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);