mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 15:42:14 +00:00
ICU-21833 Replace nullptr with 0 when assigning to UChar.
This bug was originally introduced by ICU-4844 which erroneously assigned NULL to UChar (which happens to work, even though it's conceptually wrong).
This commit is contained in:
parent
fcd6e384bd
commit
5560ee8870
1 changed files with 1 additions and 1 deletions
|
@ -769,7 +769,7 @@ public:
|
|||
} else {
|
||||
icu_data->append_one(len);
|
||||
memcpy(icu_data->last(), line, len * sizeof(UChar));
|
||||
icu_data->last()[len -1] = nullptr;
|
||||
icu_data->last()[len -1] = 0;
|
||||
}
|
||||
}
|
||||
if(U_FAILURE(status)) return;
|
||||
|
|
Loading…
Add table
Reference in a new issue