Fix stdc violation

This commit is contained in:
Greg Sjaardema 2016-08-24 21:27:48 -06:00
parent d16f5a8842
commit 207a2ee4f9

View File

@ -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)++;