ICU-4707 Fix some compiler warnings

X-SVN-Rev: 19403
This commit is contained in:
George Rhoten 2006-03-22 08:19:34 +00:00
parent 88889fdd3a
commit de9404852f

View file

@ -1549,7 +1549,6 @@ _canonicalize(const char* localeID,
UErrorCode* err) {
int32_t j, len, fieldCount=0, scriptSize=0, variantSize=0, nameCapacity;
char localeBuffer[ULOC_FULLNAME_CAPACITY];
const char* id = localeID;
const char* keywordAssign = NULL;
const char* separatorIndicator = NULL;
const char* addKeyword = NULL;
@ -1580,7 +1579,7 @@ _canonicalize(const char* localeID,
/* get all pieces, one after another, and separate with '_' */
len=_getLanguage(localeID, name, nameCapacity, &localeID);
if(len == I_DEFAULT_LENGTH && uprv_strncmp(id, i_default, len) == 0) {
if(len == I_DEFAULT_LENGTH && uprv_strncmp(localeID, i_default, len) == 0) {
const char *d = uloc_getDefault();
len = uprv_strlen(d);