Commit 94bd33f1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

input: small simplification

parent 61e068e6
...@@ -2739,11 +2739,8 @@ static char *LanguageGetCode( const char *psz_lang ) ...@@ -2739,11 +2739,8 @@ static char *LanguageGetCode( const char *psz_lang )
!strcasecmp( pl->psz_iso639_1, psz_lang ) || !strcasecmp( pl->psz_iso639_1, psz_lang ) ||
!strcasecmp( pl->psz_iso639_2T, psz_lang ) || !strcasecmp( pl->psz_iso639_2T, psz_lang ) ||
!strcasecmp( pl->psz_iso639_2B, psz_lang ) ) !strcasecmp( pl->psz_iso639_2B, psz_lang ) )
break;
}
if( pl->psz_eng_name != NULL )
return strdup( pl->psz_iso639_1 ); return strdup( pl->psz_iso639_1 );
}
return strdup("??"); return strdup("??");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment