From 29fe431f2ae9ace5ba5088678c6ec68c258f240c Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Fri, 20 Aug 2010 21:18:08 +0000 Subject: [PATCH] ICU-7882 Fix pointer declaration error. X-SVN-Rev: 28504 --- icu4c/source/common/uloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icu4c/source/common/uloc.c b/icu4c/source/common/uloc.c index a4ca2dd5bc..b17dce0ef7 100644 --- a/icu4c/source/common/uloc.c +++ b/icu4c/source/common/uloc.c @@ -798,6 +798,7 @@ uloc_getKeywordValue(const char* localeID, char* buffer, int32_t bufferCapacity, UErrorCode* status) { + const char* startSearchHere = NULL; const char* nextSeparator = NULL; char keywordNameBuffer[ULOC_KEYWORD_BUFFER_LEN]; char localeKeywordNameBuffer[ULOC_KEYWORD_BUFFER_LEN]; @@ -814,7 +815,7 @@ uloc_getKeywordValue(const char* localeID, tmpLocaleID=localeID; } - const char* startSearchHere = uprv_strchr(tmpLocaleID, '@'); /* TODO: REVISIT: shouldn't this be locale_getKeywordsStart ? */ + startSearchHere = uprv_strchr(tmpLocaleID, '@'); /* TODO: REVISIT: shouldn't this be locale_getKeywordsStart ? */ if(startSearchHere == NULL) { /* no keywords, return at once */ return 0;