Error handling

This commit is contained in:
Shahram Najm 2020-02-13 11:21:24 +00:00
parent e955bc532b
commit aa751707d2
2 changed files with 3 additions and 1 deletions

View File

@ -539,6 +539,7 @@ static int bufr_decode_header(grib_context* c, const void* message, off_t offset
hdr->message_size = (unsigned long)size;
err = bufr_extract_edition(message, &hdr->edition);
if (err) return err;
if (hdr->edition == 3) {
err = bufr_decode_edition3(message, hdr);

View File

@ -472,7 +472,8 @@ static int unpack_double(grib_accessor* a, double* val, size_t* len)
grib_accessor* abitmap = NULL;
size_t bitmap_len = 0;
err = grib_value_count(a, &nn);
err = grib_value_count(a, &nn);
if (err) return err;
n_vals = nn;
if ((err = grib_get_long_internal(gh, self->offsetsection, &offsetsection)) != GRIB_SUCCESS)