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:
Fredrik Roubert 2023-02-03 20:43:54 +01:00 committed by Fredrik Roubert
parent fcd6e384bd
commit 5560ee8870

View file

@ -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;