Const correctness

This commit is contained in:
Shahram Najm 2023-11-08 19:00:55 +00:00
parent 3b67aec2b7
commit 180aab7b3a
1 changed files with 1 additions and 2 deletions

View File

@ -331,7 +331,6 @@ grib_handle* grib_handle_clone_light(const grib_handle* h)
int err = 0;
size_t size1 = 0;
const void* msg1 = NULL;
grib_handle* h1 = (grib_handle*)h;
long edition = 0;
// Only for GRIB, not BUFR etc
@ -347,7 +346,7 @@ grib_handle* grib_handle_clone_light(const grib_handle* h)
return NULL;
}
err = grib_get_message_headers(h1, &msg1, &size1);
err = grib_get_message_headers(h, &msg1, &size1);
if (err) return NULL;
size1 += 4;