mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 14:05:32 +00:00
ICU-21249 Fix warnings about uninitialized variables in locid.cpp
This commit is contained in:
parent
9b9db682e1
commit
6c9655060b
1 changed files with 6 additions and 6 deletions
|
@ -1252,11 +1252,11 @@ AliasReplacer::replaceLanguage(
|
|||
continue;
|
||||
}
|
||||
|
||||
const char* replacedLanguage;
|
||||
const char* replacedScript;
|
||||
const char* replacedRegion;
|
||||
const char* replacedVariant;
|
||||
const char* replacedExtensions;
|
||||
const char* replacedLanguage = nullptr;
|
||||
const char* replacedScript = nullptr;
|
||||
const char* replacedRegion = nullptr;
|
||||
const char* replacedVariant = nullptr;
|
||||
const char* replacedExtensions = nullptr;
|
||||
parseLanguageReplacement(replacement,
|
||||
replacedLanguage,
|
||||
replacedScript,
|
||||
|
@ -1266,7 +1266,7 @@ AliasReplacer::replaceLanguage(
|
|||
toBeFreed,
|
||||
status);
|
||||
replacedLanguage =
|
||||
uprv_strcmp(replacedLanguage, "und") == 0 ?
|
||||
(replacedLanguage != nullptr && uprv_strcmp(replacedLanguage, "und") == 0) ?
|
||||
language : replacedLanguage;
|
||||
replacedScript = deleteOrReplace(script, nullptr, replacedScript);
|
||||
replacedRegion = deleteOrReplace(region, searchRegion, replacedRegion);
|
||||
|
|
Loading…
Add table
Reference in a new issue