]> git.saurik.com Git - wxWidgets.git/commitdiff
reset errno before testing it
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 28 Oct 2006 15:41:32 +0000 (15:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 28 Oct 2006 15:41:32 +0000 (15:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/string.cpp

index 62d81aab2982b68c573a05646dc9c920a9e6ca43..20608e466becb8cb9bcdc74f6e8222d03988cecd 100644 (file)
@@ -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);