Skip to content

Commit

Permalink
ICU-13489 Merging addtional change (r40723 - fixing AIX/older gcc bui…
Browse files Browse the repository at this point in the history
…ld issues) in #13457 to maint-60 for 60.2

X-SVN-Rev: 40727
  • Loading branch information
yumaoka committed Dec 13, 2017
1 parent 42f3b2d commit e387c69
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions icu4c/source/i18n/calendar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -706,10 +706,10 @@ fTime(0),
fLenient(TRUE),
fZone(NULL),
fRepeatedWallTime(UCAL_WALLTIME_LAST),
fSkippedWallTime(UCAL_WALLTIME_LAST),
validLocale(""),
actualLocale("")
fSkippedWallTime(UCAL_WALLTIME_LAST)
{
validLocale[0] = 0;
actualLocale[0] = 0;
clear();
if (U_FAILURE(success)) {
return;
Expand All @@ -734,10 +734,10 @@ fTime(0),
fLenient(TRUE),
fZone(NULL),
fRepeatedWallTime(UCAL_WALLTIME_LAST),
fSkippedWallTime(UCAL_WALLTIME_LAST),
validLocale(""),
actualLocale("")
fSkippedWallTime(UCAL_WALLTIME_LAST)
{
validLocale[0] = 0;
actualLocale[0] = 0;
if (U_FAILURE(success)) {
return;
}
Expand Down Expand Up @@ -768,10 +768,10 @@ fTime(0),
fLenient(TRUE),
fZone(NULL),
fRepeatedWallTime(UCAL_WALLTIME_LAST),
fSkippedWallTime(UCAL_WALLTIME_LAST),
validLocale(""),
actualLocale("")
fSkippedWallTime(UCAL_WALLTIME_LAST)
{
validLocale[0] = 0;
actualLocale[0] = 0;
if (U_FAILURE(success)) {
return;
}
Expand Down Expand Up @@ -830,6 +830,8 @@ Calendar::operator=(const Calendar &right)
fNextStamp = right.fNextStamp;
uprv_strncpy(validLocale, right.validLocale, sizeof(validLocale));
uprv_strncpy(actualLocale, right.actualLocale, sizeof(actualLocale));
validLocale[sizeof(validLocale)-1] = 0;
actualLocale[sizeof(validLocale)-1] = 0;
}

return *this;
Expand Down

0 comments on commit e387c69

Please sign in to comment.