From 9d227ca6f1644a29820acb27b700435fa3475c0a Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Thu, 5 Apr 2001 22:01:28 +0000 Subject: [PATCH] ICU-597 Don't try to read a NULL pointer. X-SVN-Rev: 4452 --- icu4c/source/extra/ustdio/ufile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/extra/ustdio/ufile.c b/icu4c/source/extra/ustdio/ufile.c index 0cf6644f9d..772ba53f91 100644 --- a/icu4c/source/extra/ustdio/ufile.c +++ b/icu4c/source/extra/ustdio/ufile.c @@ -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;