summaryrefslogtreecommitdiffstats
path: root/examples/h5dsm_dset_w1m.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/h5dsm_dset_w1m.c')
-rw-r--r--examples/h5dsm_dset_w1m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/h5dsm_dset_w1m.c b/examples/h5dsm_dset_w1m.c
index dbd568b..3ee1e11 100644
--- a/examples/h5dsm_dset_w1m.c
+++ b/examples/h5dsm_dset_w1m.c
@@ -34,7 +34,7 @@ int main(int argc, char *argv[]) {
ERROR;
/* Create native file */
- if((file = H5Fcreate(argv[2], H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0)
+ if((nfile = H5Fcreate(argv[2], H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0)
ERROR;
/* Set up dataspace */