applying 1960600 (avoid dereferencing lc if it hasn't been set)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2333,6 +2333,8 @@ void wxLocale::AddCatalogLookupPathPrefix(const wxString& prefix)
|
|||||||
default :
|
default :
|
||||||
break ;
|
break ;
|
||||||
}
|
}
|
||||||
|
if ( !lc )
|
||||||
|
return wxLANGUAGE_UNKNOWN;
|
||||||
for ( i = 0; i < count; i++ )
|
for ( i = 0; i < count; i++ )
|
||||||
{
|
{
|
||||||
if ( ms_languagesDB->Item(i).CanonicalName == lc )
|
if ( ms_languagesDB->Item(i).CanonicalName == lc )
|
||||||
|
|||||||
Reference in New Issue
Block a user