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
db2d2340
Commit
db2d2340
authored
Feb 08, 2011
by
Uwe Schulzweida
Browse files
gribapiAddRecord: init longname and units
parent
5a276865
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_gribapi.c
View file @
db2d2340
...
...
@@ -656,6 +656,10 @@ void gribapiAddRecord(int streamID, int param, grib_handle *gh,
if
(
prec
>
32
)
prec
=
DATATYPE_PACK32
;
if
(
prec
<
0
)
prec
=
DATATYPE_PACK
;
name
[
0
]
=
0
;
longname
[
0
]
=
0
;
units
[
0
]
=
0
;
vlen
=
256
;
GRIB_CHECK
(
grib_get_string
(
gh
,
"shortName"
,
name
,
&
vlen
),
0
);
if
(
vlen
==
8
&&
memcmp
(
name
,
"unknown"
,
vlen
)
==
0
)
name
[
0
]
=
0
;
...
...
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