Commit 05ac40a3 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cgribexEncode: initialize the first 256 entries of isec1 to zero

parent 99dabc8a
......@@ -477,6 +477,8 @@ void cgribexDecodeHeader(int *isec0, int *isec1, int *isec2, double *fsec2,
{
int iret = 0, ipunp = 0, iword = 0;
memset(isec1, 0, 256*sizeof(int));
gribExDP(isec0, isec1, isec2, fsec2, isec3, fsec3, isec4, fsec4,
ipunp, (int *) gribbuffer, recsize, &iword, "J", &iret);
......@@ -1633,7 +1635,7 @@ void cgribexDefGrid(int *isec1, int *isec2, int *isec4, int gridID)
memset(isec2, 0, 16*sizeof(int));
ISEC1_Sec2Or3Flag = 128;
gridtype = gridInqType(gridID);
ISEC1_GridDefinition = 255;
......
......@@ -134,7 +134,7 @@ typedef struct
srvrec_t *srvp;
#endif
#if defined (HAVE_LIBEXTRA)
extrec_t *extp;
extrec_t *extp;
#endif
#if defined (HAVE_LIBIEG)
iegrec_t *iegp;
......
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