X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/729e4ab9bc6618bc3d8a898e575df7f4019e29ca..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/common/uvectr32.cpp?ds=sidebyside diff --git a/icuSources/common/uvectr32.cpp b/icuSources/common/uvectr32.cpp index f0ffa106..f7a65250 100644 --- a/icuSources/common/uvectr32.cpp +++ b/icuSources/common/uvectr32.cpp @@ -1,7 +1,7 @@ /* ****************************************************************************** -* Copyright (C) 1999-2010, International Business Machines Corporation and * -* others. All Rights Reserved. * +* Copyright (C) 1999-2015, International Business Machines Corporation and +* others. All Rights Reserved. ****************************************************************************** * Date Name Description * 10/22/99 alan Creation. @@ -196,6 +196,9 @@ int32_t UVector32::indexOf(int32_t key, int32_t startIndex) const { UBool UVector32::expandCapacity(int32_t minimumCapacity, UErrorCode &status) { + if (U_FAILURE(status)) { + return FALSE; + } if (minimumCapacity < 0) { status = U_ILLEGAL_ARGUMENT_ERROR; return FALSE;