Skip to content

Commit 0b2e0a2

Browse files
committed
fix tst_del_attr.c: this else clause does not guard...
1 parent 8ba8855 commit 0b2e0a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/testcases/tst_del_attr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ tst_fmt(char *filename, int cmode)
7676
for (j=0; j<3; j++) buf[j]='a'+j;
7777
err = ncmpi_put_att_text(ncid, NC_GLOBAL, attr_name[i], 3, buf); CHECK_ERR
7878
}
79-
else
79+
else {
8080
err = ncmpi_put_att(ncid, NC_GLOBAL, attr_name[i], i, 3, buf); CHECK_ERR
81+
}
8182
ATTR_EXP_ERR(NC_NOERR, attr_name[i])
8283

8384
err = ncmpi_close(ncid); CHECK_ERR

0 commit comments

Comments
 (0)