ICU-597 Don't try to read a NULL pointer.
X-SVN-Rev: 4452
This commit is contained in:
parent
df95857790
commit
9d227ca6f1
@ -117,7 +117,7 @@ static const char*
|
||||
ufile_lookup_codepage(const char *locale)
|
||||
{
|
||||
int32_t i;
|
||||
for(i = 0; ufile_locale2codepage[i][0]; i+= 2)
|
||||
for(i = 0; ufile_locale2codepage[i]; i+= 2)
|
||||
if( ! strncmp(ufile_locale2codepage[i], locale, 2))
|
||||
return ufile_locale2codepage[i + 1];
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user