From: Guilhem Lavaux Date: Thu, 13 May 1999 09:44:03 +0000 (+0000) Subject: * fix in wcslen() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cd8b9f13c7ad6990f59b655138ac1d5128d3201d?ds=sidebyside;hp=ae2d6d020011bf6d9f95609e7ebc2733d84e0d8b * fix in wcslen() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index 17f53d7ec0..fba42b9352 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -116,7 +116,7 @@ bool WXDLLEXPORT wxOKlibc() #ifndef HAVE_WCSLEN size_t WXDLLEXPORT wcslen(const wchar_t *s) { - size_t len; + size_t len = 0; while (s[len]) len++; return len; }