mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-4118 fix ucol_normalizeShortDefinitionString crash when parse error is NULL
X-SVN-Rev: 16373
This commit is contained in:
parent
71bfb44cba
commit
162ffbb8f8
1 changed files with 5 additions and 0 deletions
|
@ -590,6 +590,11 @@ ucol_normalizeShortDefinitionString(const char *definition,
|
|||
uprv_memset(destination, 0, capacity*sizeof(char));
|
||||
}
|
||||
|
||||
UParseError pe;
|
||||
if(!parseError) {
|
||||
parseError = &pe;
|
||||
}
|
||||
|
||||
// validate
|
||||
CollatorSpec s;
|
||||
ucol_sit_initCollatorSpecs(&s);
|
||||
|
|
Loading…
Add table
Reference in a new issue