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
40005c73
Commit
40005c73
authored
Oct 09, 2017
by
Uwe Schulzweida
Browse files
cdf_scan_var_attr: skip comma in coordinates attribute.
parent
22ceb769
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf_i.c
View file @
40005c73
...
...
@@ -1323,6 +1323,7 @@ void cdf_scan_var_attr(int nvars, ncvar_t *ncvars, ncdim_t *ncdims, int timedimi
char
*
varname
=
pstring
;
while
(
!
isspace
((
int
)
*
pstring
)
&&
*
pstring
!=
0
)
pstring
++
;
if
(
*
pstring
==
0
)
lstop
=
true
;
if
(
*
(
pstring
-
1
)
==
','
)
*
(
pstring
-
1
)
=
0
;
*
pstring
++
=
0
;
int
dimvarid
;
...
...
@@ -1345,7 +1346,7 @@ void cdf_scan_var_attr(int nvars, ncvar_t *ncvars, ncdim_t *ncdims, int timedimi
if
(
k
==
nchecked_vars
)
{
if
(
nchecked_vars
<
max_check_vars
)
checked_vars
[
nchecked_vars
++
]
=
strdup
(
varname
);
Warning
(
"%s - %s"
,
nc_strerror
(
status
),
varname
);
Warning
(
"%s -
>
%s
<
"
,
nc_strerror
(
status
),
varname
);
}
}
...
...
Write
Preview
Markdown
is supported
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