ECC-1101: BUFR decoding: error message issued if numberOfSubsets==0 and empty data section

This commit is contained in:
Shahram Najm 2020-04-08 12:51:08 +01:00
parent 7524976988
commit 7b8a892508
1 changed files with 1 additions and 1 deletions

View File

@ -2450,7 +2450,7 @@ static int create_keys(grib_accessor* a, long onlySubset, long startSubset, long
grib_sarray_delete(c, self->tempStrings);
self->tempStrings = NULL;
}
self->tempStrings = grib_sarray_new(c, self->numberOfSubsets, 500);
self->tempStrings = self->numberOfSubsets? grib_sarray_new(c, self->numberOfSubsets, 500) : NULL;
end = self->compressedData ? 1 : self->numberOfSubsets;
groupNumber = 1;