X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5de9bc8049a424a64ed8df4ae5c40662370c19c4..f61757b17c623137d439b3cbe34960f7ce1e9601:/src/common/wxchar.cpp 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; }