Skip to content
GitLab
Menu
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
0673a350
Commit
0673a350
authored
Apr 16, 2013
by
Uwe Schulzweida
Browse files
cleanup memory for streamptr->vars[varID].level
parent
d4147868
Changes
2
Show whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
0673a350
...
...
@@ -6051,9 +6051,7 @@ void define_all_vars(stream_t *streamptr, int vlistID, int instID, int modelID,
vlistDefVarChunkType
(
vlistID
,
varID
,
ncvars
[
ncvarid
].
chunktype
);
#endif
streamptr
->
vars
[
varID1
].
level
=
NULL
;
streamptr
->
vars
[
varID1
].
defmiss
=
0
;
streamptr
->
vars
[
varID1
].
nlevs
=
zaxisInqSize
(
ncvars
[
ncvarid
].
zaxisID
);
streamptr
->
vars
[
varID1
].
ncvarid
=
ncvarid
;
vlistDefVarName
(
vlistID
,
varID
,
ncvars
[
ncvarid
].
name
);
...
...
src/stream_var.c
View file @
0673a350
...
...
@@ -23,8 +23,6 @@ void streamvar_init_entry(stream_t *streamptr, int varID)
streamptr
->
vars
[
varID
].
gridID
=
CDI_UNDEFID
;
streamptr
->
vars
[
varID
].
zaxisID
=
CDI_UNDEFID
;
streamptr
->
vars
[
varID
].
tsteptype
=
CDI_UNDEFID
;
streamptr
->
vars
[
varID
].
level
=
NULL
;
streamptr
->
vars
[
varID
].
nlevs
=
0
;
}
static
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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