ICU-597 Don't try to read a NULL pointer.

X-SVN-Rev: 4452
This commit is contained in:
George Rhoten 2001-04-05 22:01:28 +00:00
parent df95857790
commit 9d227ca6f1

View File

@ -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;