X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/374ca955a76ecab1204ca8bfa63ff9238d998416..f59164e3d128c7675a4d3934206346a3384e53a5:/icuSources/common/uenum.c diff --git a/icuSources/common/uenum.c b/icuSources/common/uenum.c index 549769c4..9a3d9e14 100644 --- a/icuSources/common/uenum.c +++ b/icuSources/common/uenum.c @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 2002-2004, International Business Machines +* Copyright (C) 2002-2012, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -160,7 +160,13 @@ uenum_next(UEnumeration* en, return NULL; } if (en->next != NULL) { - return en->next(en, resultLength, status); + if (resultLength != NULL) { + return en->next(en, resultLength, status); + } + else { + int32_t dummyLength=0; + return en->next(en, &dummyLength, status); + } } else { *status = U_UNSUPPORTED_ERROR; return NULL;