X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/999836aacade840a5d9a0cbb5fad7b1d4de62c93..a85585d595c8409fa5e51a28e60fa49428440d5e:/src/common/intl.cpp 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] )