From aff909dd4f5076d56d79f15eaef85549e517ab80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 16 Jun 2007 19:11:40 +0000 Subject: [PATCH] fixed crash when setting locale git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/intl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0