X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/999836aacade840a5d9a0cbb5fad7b1d4de62c93..1857c88d2624f37590be3b13c33f5cf9449e7a3b:/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] )