Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
05ac40a3
Commit
05ac40a3
authored
Sep 05, 2012
by
Uwe Schulzweida
Browse files
cgribexEncode: initialize the first 256 entries of isec1 to zero
parent
99dabc8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/stream_cgribex.c
View file @
05ac40a3
...
...
@@ -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
;
...
...
src/stream_int.h
View file @
05ac40a3
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment