ICU-2974 disallow new X[0]

X-SVN-Rev: 12315
This commit is contained in:
Alan Liu 2003-06-05 17:26:12 +00:00
parent 170a67874b
commit 94de212563

View File

@ -162,7 +162,7 @@ static UBool loadZoneData() {
// Construct the available IDs array. The ordering
// of this array conforms to the ordering of the
// index by name table.
UnicodeString* zone_ids = new UnicodeString[tzh->count];
UnicodeString* zone_ids = new UnicodeString[tzh->count ? tzh->count : 1];
if (zone_ids == 0) {
udata_close(udata);
return FALSE;