Commit 1cee42ba authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix shadowing of msg variable.

parent fd105dac
......@@ -2130,10 +2130,11 @@ void gribapiDefGrid(int editionNumber, grib_handle *gh, int gridID, int comptype
}
case GRID_SPECTRAL:
{
static const char mesg[] = "sh";
size_t len = sizeof(mesg) -1;
GRIB_CHECK(my_grib_set_string(gh, "gridType", mesg, &len), 0);
{
static const char mesg[] = "sh";
size_t len = sizeof (mesg) -1;
GRIB_CHECK(my_grib_set_string(gh, "gridType", mesg, &len), 0);
}
int trunc = gridInqTrunc(gridID);
GRIB_CHECK(my_grib_set_long(gh, "J", trunc), 0);
GRIB_CHECK(my_grib_set_long(gh, "K", trunc), 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment