Fix failure in python tests

This commit is contained in:
Shahram Najm 2023-08-22 15:38:53 +01:00
parent bfb9893d28
commit 08989dde14
1 changed files with 1 additions and 2 deletions

View File

@ -391,8 +391,7 @@ static int unpack_string_array(grib_accessor* a, char** v, size_t* len)
if (err)
return err;
v[0] = (char*)grib_context_malloc_clear(a->context, length);
err = grib_unpack_string(a, v[0], &length);
if (err) return err;
grib_unpack_string(a, v[0], &length); // TODO(masn): check return value
*len = 1;
return GRIB_SUCCESS;