ECC-960: grib_util_set_spec: Interpolation fails on GRIB message with no levelType key

This commit is contained in:
Shahram Najm 2019-07-26 15:19:51 +01:00
parent d9879974bb
commit 7de26c396a
1 changed files with 0 additions and 3 deletions

View File

@ -1050,9 +1050,6 @@ grib_handle* grib_util_set_spec2(grib_handle* h,
/* The "pl" is given from the template, but "section_copy" will take care of setting the right headers */
{
char levtype[80];
size_t n = sizeof(levtype);
Assert(grib_get_string(h,"levelType",levtype,&n) == 0);
switch (spec->grid_type) {
case GRIB_UTIL_GRID_SPEC_REDUCED_GG:
case GRIB_UTIL_GRID_SPEC_REDUCED_ROTATED_GG: