Skip to content

Commit

Permalink
ICU-22913 Fix coverity warning in wrtxml.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-fabian authored and markusicu committed Sep 24, 2024
1 parent ed68cff commit 687ed05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icu4c/source/tools/genrb/wrtxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 687ed05

Please sign in to comment.