mirror of https://github.com/ecmwf/eccodes.git
Clang static analyser warnings
This commit is contained in:
parent
5d4c5b49d6
commit
ed3130298f
|
@ -634,7 +634,7 @@ static int unpack_double(grib_accessor* a, double* val, size_t* len)
|
|||
grib_accessor_data_g2bifourier_packing* self = (grib_accessor_data_g2bifourier_packing*)a;
|
||||
grib_handle* gh = grib_handle_of_accessor(a);
|
||||
|
||||
unsigned char* buf = (unsigned char*)gh->buffer->data;
|
||||
unsigned char* buf = NULL;
|
||||
unsigned char* hres = NULL;
|
||||
unsigned char* lres = NULL;
|
||||
unsigned long packed_offset;
|
||||
|
|
|
@ -783,7 +783,6 @@ static grib_handle* grib_handle_new_from_file_multi(grib_context* c, FILE* f, in
|
|||
if (gts_header) memcpy(gl->gts_header, gts_header, gtslen);
|
||||
gl->gts_header_len = gtslen;
|
||||
grib_context_free(c, save_gts_header);
|
||||
gtslen = 0;
|
||||
}
|
||||
else {
|
||||
gl->gts_header = NULL;
|
||||
|
|
|
@ -306,6 +306,7 @@ static void gaussian_grid(grib_handle* h)
|
|||
|
||||
pl = (double*)malloc(sizeof(double)*(count));
|
||||
CHECK(pl != NULL);
|
||||
if (!pl) return;
|
||||
|
||||
nPl = count;
|
||||
if((err_code = grib_get_double_array(h,"pl",pl,&count)))
|
||||
|
|
Loading…
Reference in New Issue