Skip to content

Commit 8ba8855

Browse files
committed
fix tst_atts3.c: this for clause does not guard...
1 parent 080a2dd commit 8ba8855

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/nc_test/tst_atts3.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,9 @@ tst_atts3(char *filename, int cmode)
167167

168168
/* Create a file with some global atts. */
169169
err=ncmpi_create(MPI_COMM_WORLD, filename, cmode, MPI_INFO_NULL,&ncid); ERR
170-
for (j = 0; j < NUM_SIMPLE_ATTS; j++)
170+
for (j = 0; j < NUM_SIMPLE_ATTS; j++) {
171171
err=ncmpi_put_att_int(ncid, NC_GLOBAL, name[j], NC_INT, 0, NULL); ERR
172+
}
172173
err=ncmpi_close(ncid); ERR
173174

174175
/* Reopen the file and check the order. */

0 commit comments

Comments
 (0)