diff options
-rw-r--r-- | hl/src/H5PT.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hl/src/H5PT.c b/hl/src/H5PT.c index e2d6a3d..647cbe8 100644 --- a/hl/src/H5PT.c +++ b/hl/src/H5PT.c @@ -141,10 +141,7 @@ hid_t H5PTcreate(hid_t loc_id, if(H5Pclose(plistcopy_id) < 0) goto error; - if((table->type_id = H5Tcopy(dtype_id)) < 0) - goto error; - - if((table->type_id = H5Tget_native_type(table->type_id, H5T_DIR_DEFAULT)) < 0) + if((table->type_id = H5Tget_native_type(dtype_id, H5T_DIR_DEFAULT)) < 0) goto error; H5PT_create_index(table); |