From 0926974a6362bf85e5f8bb30132a0fd964ff7ea7 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Thu, 3 Jan 2002 13:57:44 -0500 Subject: [svn-r4769] Purpose: Bug Fix/Code Cleanup Description: Duplicated call to H5T_path_find was being made. Solution: Removed one... :-) Platforms tested: FreeBSD 4.5 (sleipnir) --- src/H5Tconv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/H5Tconv.c b/src/H5Tconv.c index 014f55f..29c0d2d 100644 --- a/src/H5Tconv.c +++ b/src/H5Tconv.c @@ -2459,7 +2459,6 @@ H5T_conv_vlen(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, hsize_t nelmts, "memory allocation failed for type conversion"); /* Set up conversion path for base elements */ - tpath = H5T_path_find(src->parent, dst->parent, NULL, NULL); if (NULL==(tpath=H5T_path_find(src->parent, dst->parent, NULL, NULL))) { HRETURN_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "unable to convert between src and dest datatypes"); @@ -2650,7 +2649,6 @@ H5T_conv_array(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, hsize_t nelmts, dst_delta = direction * (buf_stride ? buf_stride : dst->size); /* Set up conversion path for base elements */ - tpath = H5T_path_find(src->parent, dst->parent, NULL, NULL); if (NULL==(tpath=H5T_path_find(src->parent, dst->parent, NULL, NULL))) { HRETURN_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, -- cgit v0.12