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:
Václav Slavík
2003-10-24 09:32:29 +00:00
parent 14630825ef
commit c7c0629157

View File

@@ -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] )