mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Fix missing ERR after if test
A couple API invocations were missing the ERR macro following the if test.
This commit is contained in:
parent
070df7c583
commit
60a6f34102
@ -114,13 +114,13 @@ main(int argc, char **argv)
|
||||
/* Create a classic model file. No groups will be allowed. */
|
||||
if (nc_create(FILE_NAME_CLASSIC_MODEL, NC_NETCDF4|NC_CLASSIC_MODEL, &ncid2)) ERR;
|
||||
if (nc_def_grp(ncid2, HENRY_VII, &henry_vii_id) != NC_ESTRICTNC3) ERR;
|
||||
if (nc_def_var(ncid2, HENRY_IV, NC_INT, 0, NULL, NULL));
|
||||
if (nc_def_var(ncid2, HENRY_IV, NC_INT, 0, NULL, NULL)) ERR;
|
||||
if (nc_close(ncid2)) ERR;
|
||||
|
||||
/* Create a file with one group, a group to contain data about
|
||||
* Henry VII. */
|
||||
if (nc_create(FILE_NAME, NC_NETCDF4, &ncid)) ERR;
|
||||
if (nc_def_var(ncid, HENRY_IV, NC_INT, 0, NULL, NULL));
|
||||
if (nc_def_var(ncid, HENRY_IV, NC_INT, 0, NULL, NULL)) ERR;
|
||||
|
||||
/* Turn off define mode. It will automatically be turned back on
|
||||
* when nc_def_grp is called. */
|
||||
|
Loading…
Reference in New Issue
Block a user