summaryrefslogtreecommitdiffstats
path: root/c++/test/tattr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/test/tattr.cpp')
-rw-r--r--c++/test/tattr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/test/tattr.cpp b/c++/test/tattr.cpp
index df9309c..08eef83 100644
--- a/c++/test/tattr.cpp
+++ b/c++/test/tattr.cpp
@@ -1104,7 +1104,7 @@ test_attr_dtype_shared(void)
DataSet *dset2 = new DataSet (fid1.openDataSet(DSET1_NAME));
// Open attribute
- Attribute *attr2 = new Attribute (dset.openAttribute(ATTR1_NAME));
+ Attribute *attr2 = new Attribute (dset2->openAttribute(ATTR1_NAME));
// Read data from the attribute
attr2->read(PredType::NATIVE_INT, &rdata);