ICU-6132 When checking firstTZTransition, it was accidentally assigned NULL instead of testing for NULL.

X-SVN-Rev: 23221
This commit is contained in:
Michael Ow 2008-01-14 18:19:44 +00:00
parent e1398c194a
commit c4aa0659fb

View file

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