ICU-535 fixed some compiler warnings, and changed the order of an assignment and return according to weiv.

X-SVN-Rev: 2206
This commit is contained in:
George Rhoten 2000-08-11 21:25:19 +00:00
parent a8f7718d40
commit 48694f0fea

View File

@ -269,16 +269,16 @@ U_CFUNC Resource res_getArrayItem(const ResourceData *pResData, const Resource a
}
U_CFUNC Resource res_getTableItemByKey(const ResourceData *pResData, const Resource table, int32_t* indexR, const char* * key) {
uint16_t tempIndex = 0;
uint16_t tempIndex;
if(key != NULL) {
tempIndex = _res_findTableIndex(pResData->pRoot, table, *key);
if(tempIndex != URESDATA_ITEM_NOT_FOUND) {
*key = _res_getTableKey(pResData->pRoot, table, tempIndex);
return _res_getTableItem(pResData->pRoot, table, tempIndex);
*indexR = tempIndex;
} else {
return RES_BOGUS;
}
if(tempIndex != URESDATA_ITEM_NOT_FOUND) {
*key = _res_getTableKey(pResData->pRoot, table, tempIndex);
*indexR = tempIndex;
return _res_getTableItem(pResData->pRoot, table, tempIndex);
} else {
return RES_BOGUS;
}
} else {
return RES_BOGUS;
}