ICU-9669 Rollback changeset 32866.
X-SVN-Rev: 32867
This commit is contained in:
parent
c86501fbf2
commit
ab7f32d76e
@ -1670,17 +1670,13 @@ ures_getStringByKeyWithFallback(const UResourceBundle *resB,
|
||||
const UChar* retVal = NULL;
|
||||
ures_initStackObject(&stack);
|
||||
ures_getByKeyWithFallback(resB, inKey, &stack, status);
|
||||
int32_t length;
|
||||
retVal = ures_getString(&stack, &length, status);
|
||||
retVal = ures_getString(&stack, len, status);
|
||||
ures_close(&stack);
|
||||
if ( retVal != NULL && length == 3 && retVal[0] == EMPTY_SET && retVal[1] == EMPTY_SET && retVal[2] == EMPTY_SET ) {
|
||||
if ( retVal != NULL && u_strlen(retVal) == 3 && retVal[0] == EMPTY_SET && retVal[1] == EMPTY_SET && retVal[2] == EMPTY_SET ) {
|
||||
retVal = NULL;
|
||||
length = 0;
|
||||
*len = 0;
|
||||
*status = U_MISSING_RESOURCE_ERROR;
|
||||
}
|
||||
if (len != NULL) {
|
||||
*len = length;
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user