summaryrefslogtreecommitdiffstats
path: root/src/H5T.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-06-11 21:06:29 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-06-11 21:06:29 (GMT)
commit8735902ea3fd111e2a8924b4516b701659259cf4 (patch)
tree6fb0ca23f62d27793dc5aa0a442c43ff7ed0adde /src/H5T.c
parent2a59a4ca3d1a165fd62c3a76e38f194124d00839 (diff)
downloadhdf5-8735902ea3fd111e2a8924b4516b701659259cf4.zip
hdf5-8735902ea3fd111e2a8924b4516b701659259cf4.tar.gz
hdf5-8735902ea3fd111e2a8924b4516b701659259cf4.tar.bz2
[svn-r8663] *** empty log message ***
Diffstat (limited to 'src/H5T.c')
-rw-r--r--src/H5T.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/H5T.c b/src/H5T.c
index 7a50308..91ad28e 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -2744,6 +2744,14 @@ H5T_open (H5G_entry_t *loc, const char *name, hid_t dxpl_id)
if ((dt=H5T_open_oid(&ent, dxpl_id)) ==NULL)
HGOTO_ERROR(H5E_DATATYPE, H5E_NOTFOUND, NULL, "not found");
+ /* Mark any datatypes as being in memory now */
+ if (H5T_vlen_mark(dt, NULL, H5T_VLEN_MEMORY)<0)
+ HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, NULL, "invalid datatype location")
+
+ /* Unlock data type */
+ if (H5T_lock (dt, FALSE)<0)
+ HGOTO_ERROR (H5E_DATATYPE, H5E_CANTINIT, NULL, "unable to lock transient data type")
+
/* Set return value */
ret_value=dt;