mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 22:15:31 +00:00
ICU-1948 fix memory access error
X-SVN-Rev: 8957
This commit is contained in:
parent
878c84b1d2
commit
0471b8b46e
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ res_findResource(const ResourceData *pResData, Resource r, const char** path) {
|
|||
int32_t indexR = 0, keyLen = 0;
|
||||
UResType type = RES_GET_TYPE(t1);
|
||||
|
||||
while(*pathP && nextSepP && t1 != RES_BOGUS && type >= RES_TABLE) {
|
||||
while(nextSepP && *pathP && t1 != RES_BOGUS && type >= RES_TABLE) {
|
||||
/* Iteration stops if: the path has been consumed, we found a non-existing
|
||||
* resource (t1 == RES_BOGUS) or we found a scalar resource (including alias)
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue