mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Fix stdc violation
This commit is contained in:
parent
d16f5a8842
commit
207a2ee4f9
@ -3230,8 +3230,9 @@ NC4_inq(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimidp)
|
||||
}
|
||||
if (nvarsp)
|
||||
{
|
||||
int i;
|
||||
*nvarsp = 0;
|
||||
for (int i=0; i < grp->vars.nelems; i++)
|
||||
for (i=0; i < grp->vars.nelems; i++)
|
||||
{
|
||||
if (grp->vars.value[i])
|
||||
(*nvarsp)++;
|
||||
|
Loading…
Reference in New Issue
Block a user