From 0471b8b46e8249874a0519e3c2135bfc79b60d5b Mon Sep 17 00:00:00 2001 From: Vladimir Weinstein Date: Thu, 27 Jun 2002 15:29:50 +0000 Subject: [PATCH] ICU-1948 fix memory access error X-SVN-Rev: 8957 --- icu4c/source/common/uresdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/common/uresdata.c b/icu4c/source/common/uresdata.c index a8b67c15b7f..1cb2098836f 100644 --- a/icu4c/source/common/uresdata.c +++ b/icu4c/source/common/uresdata.c @@ -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) */