fixed crash if szLocale==NULL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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] )
|
||||
|
Reference in New Issue
Block a user