diff --git a/src/grib_accessor_class_expanded_descriptors.c b/src/grib_accessor_class_expanded_descriptors.c index 417c1beae..62b917d02 100644 --- a/src/grib_accessor_class_expanded_descriptors.c +++ b/src/grib_accessor_class_expanded_descriptors.c @@ -289,7 +289,7 @@ static void __expand(grib_accessor* a, bufr_descriptors_array* unexpanded, bufr_ } #endif size = BUFR_DESCRIPTORS_ARRAY_USED_SIZE(inner_expanded); - expanded = grib_bufr_descriptors_array_append(expanded, inner_expanded); + grib_bufr_descriptors_array_append(expanded, inner_expanded); break; case 1: @@ -388,7 +388,7 @@ static void __expand(grib_accessor* a, bufr_descriptors_array* unexpanded, bufr_ } #endif size = BUFR_DESCRIPTORS_ARRAY_USED_SIZE(inner_expanded); - expanded = grib_bufr_descriptors_array_append(expanded, inner_expanded); + grib_bufr_descriptors_array_append(expanded, inner_expanded); } break;