From: Václav Slavík Date: Sat, 16 Jun 2007 19:11:40 +0000 (+0000) Subject: fixed crash when setting locale X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/aff909dd4f5076d56d79f15eaef85549e517ab80?hp=994f04a3f2d9fbd1a3f4568c49bd9c61d590586f fixed crash when setting locale git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/intl.cpp b/src/common/intl.cpp index db82ff55a3..0a027c9971 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -1602,7 +1602,7 @@ bool wxLocale::Init(const wxString& name, #if defined(__UNIX__) && wxUSE_UNICODE && !defined(__WXMAC__) static const char *wxSetlocaleTryUTF8(int c, const wxString& lc) { - const char *l; + const char *l = NULL; // NB: We prefer to set UTF-8 locale if it's possible and only fall back to // non-UTF-8 locale if it fails