From e71e5b37269174d78ec72d490148a3dece174483 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 28 Oct 2006 15:42:28 +0000 Subject: [PATCH] also reset errno iin ToDouble() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42579 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 20608e466b..f222417109 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -1710,6 +1710,8 @@ bool wxString::ToDouble(double *val) const { wxCHECK_MSG( val, false, _T("NULL pointer in wxString::ToDouble") ); + errno = 0; + const wxChar *start = c_str(); wxChar *end; *val = wxStrtod(start, &end);