mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 02:07:15 +00:00
ICU-20625 Fixing uninitialized memory in DTPG detected by Valgrind.
This commit is contained in:
parent
c8c3fbca28
commit
f9ea5351b0
1 changed files with 3 additions and 1 deletions
|
@ -2547,7 +2547,8 @@ UChar SkeletonFields::getFirstChar() const {
|
|||
}
|
||||
|
||||
|
||||
PtnSkeleton::PtnSkeleton() {
|
||||
PtnSkeleton::PtnSkeleton()
|
||||
: addedDefaultDayPeriod(FALSE) {
|
||||
}
|
||||
|
||||
PtnSkeleton::PtnSkeleton(const PtnSkeleton& other) {
|
||||
|
@ -2558,6 +2559,7 @@ void PtnSkeleton::copyFrom(const PtnSkeleton& other) {
|
|||
uprv_memcpy(type, other.type, sizeof(type));
|
||||
original.copyFrom(other.original);
|
||||
baseOriginal.copyFrom(other.baseOriginal);
|
||||
addedDefaultDayPeriod = other.addedDefaultDayPeriod;
|
||||
}
|
||||
|
||||
void PtnSkeleton::clear() {
|
||||
|
|
Loading…
Add table
Reference in a new issue