mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-20 20:19:32 +00:00
ICU-6132 When checking firstTZTransition, it was accidentally assigned NULL instead of testing for NULL.
X-SVN-Rev: 23221
This commit is contained in:
parent
e1398c194a
commit
c4aa0659fb
1 changed files with 1 additions and 1 deletions
|
@ -713,7 +713,7 @@ OlsonTimeZone::initTransitionRules(UErrorCode& status) {
|
|||
firstTZTransition = new TimeZoneTransition(((UDate)transitionTimes[firstTZTransitionIdx]) * U_MILLIS_PER_SECOND,
|
||||
*initialRule, *historicRules[typeIdx]);
|
||||
// Check to make sure firstTZTransition was created.
|
||||
if (firstTZTransition = NULL) {
|
||||
if (firstTZTransition == NULL) {
|
||||
status = U_MEMORY_ALLOCATION_ERROR;
|
||||
deleteTransitionRules();
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue