ICU-20625 Fixing uninitialized memory in DTPG detected by Valgrind.

This commit is contained in:
Shane Carr 2019-05-24 17:36:49 -07:00 committed by Shane F. Carr
parent c8c3fbca28
commit f9ea5351b0

View File

@ -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() {