mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-09 15:27:38 +00:00
ICU-6176 Fix some Coverity warnings.
X-SVN-Rev: 23431
This commit is contained in:
parent
5547bb21de
commit
e7ccc2b315
1 changed files with 3 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2007, International Business Machines Corporation and *
|
||||
* Copyright (C) 2007-2008, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -230,7 +230,8 @@ BasicTimeZone::getSimpleRulesNear(UDate date, InitialTimeZoneRule*& initial,
|
|||
initialDst = ar1->getDSTSavings();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
// Try the previous one
|
||||
avail = getPreviousTransition(date, TRUE, tr);
|
||||
if (avail) {
|
||||
|
@ -241,12 +242,6 @@ BasicTimeZone::getSimpleRulesNear(UDate date, InitialTimeZoneRule*& initial,
|
|||
// No transitions in the past. Just use the current offsets
|
||||
getOffset(date, FALSE, initialRaw, initialDst, status);
|
||||
if (U_FAILURE(status)) {
|
||||
if (ar1 != NULL) {
|
||||
delete ar1;
|
||||
}
|
||||
if (ar2 != NULL) {
|
||||
delete ar2;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue