From: Václav Slavík Date: Fri, 24 Oct 2003 09:32:29 +0000 (+0000) Subject: fixed crash if szLocale==NULL X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c7c062915700b1049ea905b94f7cfbca8cb4d832 fixed crash if szLocale==NULL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 17900a6475..0bbad0de46 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -1420,7 +1420,7 @@ bool wxLocale::Init(const wxChar *szName, if ( m_strShort.IsEmpty() ) { // FIXME I don't know how these 2 letter abbreviations are formed, // this wild guess is surely wrong - if ( szLocale[0] ) + if ( szLocale && szLocale[0] ) { m_strShort += (wxChar)wxTolower(szLocale[0]); if ( szLocale[1] )