summaryrefslogtreecommitdiffstats
path: root/test/dsets.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/dsets.c')
-rw-r--r--test/dsets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dsets.c b/test/dsets.c
index 1e0799d..0fb7732 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -703,7 +703,7 @@ test_multiopen (hid_t file)
if ((space=H5Screate_simple (1, cur_size, max_size))<0) goto error;
if ((dset1=H5Dcreate (file, "multiopen", H5T_NATIVE_INT, space,
dcpl))<0) goto error;
- if ((dset2=H5Dopen (file, "multiopen"))<0) goto error;
+ if ((dset2=H5Dopen (dset1, "."))<0) goto error;
if (H5Sclose (space)<0) goto error;
/* Extend with the first handle */