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
de639b4e
Commit
de639b4e
authored
Aug 30, 2016
by
Uwe Schulzweida
Browse files
stream_cdf_i.c: initialize name, longname, stdname, units.
parent
09cae606
Changes
1
Show whitespace changes
Inline
Side-by-side
src/stream_cdf_i.c
View file @
de639b4e
...
...
@@ -716,11 +716,6 @@ void init_ncvars(long nvars, ncvar_t *ncvars)
ncvars
[
ncvarid
].
fillval
=
0
;
ncvars
[
ncvarid
].
addoffset
=
0
;
ncvars
[
ncvarid
].
scalefactor
=
1
;
ncvars
[
ncvarid
].
name
[
0
]
=
0
;
ncvars
[
ncvarid
].
longname
[
0
]
=
0
;
ncvars
[
ncvarid
].
stdname
[
0
]
=
0
;
ncvars
[
ncvarid
].
units
[
0
]
=
0
;
ncvars
[
ncvarid
].
extra
[
0
]
=
0
;
ncvars
[
ncvarid
].
natts
=
0
;
ncvars
[
ncvarid
].
atts
=
NULL
;
ncvars
[
ncvarid
].
deflate
=
0
;
...
...
@@ -729,6 +724,11 @@ void init_ncvars(long nvars, ncvar_t *ncvars)
ncvars
[
ncvarid
].
validrange
[
0
]
=
VALIDMISS
;
ncvars
[
ncvarid
].
validrange
[
1
]
=
VALIDMISS
;
ncvars
[
ncvarid
].
ensdata
=
NULL
;
memset
(
ncvars
[
ncvarid
].
name
,
0
,
CDI_MAX_NAME
);
memset
(
ncvars
[
ncvarid
].
longname
,
0
,
CDI_MAX_NAME
);
memset
(
ncvars
[
ncvarid
].
stdname
,
0
,
CDI_MAX_NAME
);
memset
(
ncvars
[
ncvarid
].
units
,
0
,
CDI_MAX_NAME
);
memset
(
ncvars
[
ncvarid
].
extra
,
0
,
CDI_MAX_NAME
);
}
}
...
...
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