mirror of https://github.com/ecmwf/eccodes.git
Error handling
This commit is contained in:
parent
e955bc532b
commit
aa751707d2
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue