mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-05 13:35:32 +00:00
ICU-22913 Fix coverity warning in wrtxml.cpp
See: https://unicode-org.atlassian.net/browse/ICU-22913
This commit is contained in:
parent
ed68cff34e
commit
687ed05e55
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ static void strnrepchr(char* src, int32_t srcLen, char s, char r){
|
|||
*/
|
||||
static char* parseFilename(const char* id, char* /*lang*/) {
|
||||
int idLen = static_cast<int>(uprv_strlen(id));
|
||||
char* localeID = static_cast<char*>(uprv_malloc(idLen));
|
||||
char* localeID = static_cast<char*>(uprv_malloc(idLen+1));
|
||||
int pos = 0;
|
||||
int canonCapacity = 0;
|
||||
char* canon = nullptr;
|
||||
|
|
Loading…
Add table
Reference in a new issue