diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1998-10-26 17:23:29 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1998-10-26 17:23:29 (GMT) |
commit | 808847e0a1f5671c61e51455e8d6314d83341fef (patch) | |
tree | 701dfc48605ba7d3119b2cfbdbdc31401363d064 /src/H5R.c | |
parent | 5ff842ebefb4adcebaaecd5b6809f32f614ed932 (diff) | |
download | hdf5-808847e0a1f5671c61e51455e8d6314d83341fef.zip hdf5-808847e0a1f5671c61e51455e8d6314d83341fef.tar.gz hdf5-808847e0a1f5671c61e51455e8d6314d83341fef.tar.bz2 |
[svn-r791] Internal API tweaks to H5D_open_oid
Diffstat (limited to 'src/H5R.c')
-rw-r--r-- | src/H5R.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -267,12 +267,6 @@ H5R_dereference(H5D_t *dset, H5R_type_t ref_type, void *_ref) * Switch on object type, when we implement that feature, always try to * open a dataset for now */ - /* Allocate the dataset structure */ - if (NULL==(dataset = H5D_new(NULL))) { - HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, - "memory allocation failed"); - } - /* Initialize the symbol table entry */ HDmemset(&ent,0,sizeof(H5G_entry_t)); ent.type=H5G_NOTHING_CACHED; @@ -281,7 +275,7 @@ H5R_dereference(H5D_t *dset, H5R_type_t ref_type, void *_ref) H5F_addr_decode(ent.file,(const uint8 **)&p,&(ent.header)); /* Open the dataset object */ - if (H5D_open_oid(dataset, &ent) < 0) { + if ((dataset=H5D_open_oid(&ent)) == NULL) { HGOTO_ERROR(H5E_DATASET, H5E_NOTFOUND, FAIL, "not found"); } |