]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed crash when setting locale
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 16 Jun 2007 19:11:40 +0000 (19:11 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 16 Jun 2007 19:11:40 +0000 (19:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index db82ff55a3b3b31cd02a9de2bd6a3ea6726e6ce8..0a027c9971795319ac8095aa902605fa48a1bd5a 100644 (file)
@@ -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