summaryrefslogtreecommitdiffstats
path: root/src/H5Odtype.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-10-27 17:07:41 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-10-27 17:07:41 (GMT)
commit0db364390b48d705b2c3fb225651ba35a19a5b4d (patch)
treeade21aceff44ffe978ca278d2ffbd23209584e08 /src/H5Odtype.c
parentc274ffe1c9bdfa256459213cab1ece7f566b9620 (diff)
downloadhdf5-0db364390b48d705b2c3fb225651ba35a19a5b4d.zip
hdf5-0db364390b48d705b2c3fb225651ba35a19a5b4d.tar.gz
hdf5-0db364390b48d705b2c3fb225651ba35a19a5b4d.tar.bz2
[svn-r9469] Purpose:
Code cleanup Description: Clear up some inconsistencies, inefficiencies and possible errors between the release and development branch. Platforms tested: FreeBSD 4.10 (sleipnir) w/parallel Solaris 2.7 (arabica) Linux 2.4 (heping) w/C++ & FORTRAN
Diffstat (limited to 'src/H5Odtype.c')
-rw-r--r--src/H5Odtype.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index 807aaf3..4aee2b9 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -382,10 +382,6 @@ H5O_dtype_decode_helper(H5F_t *f, const uint8_t **pp, H5T_t *dt)
/* Decode base type of VL information */
if (NULL==(dt->shared->parent = H5FL_CALLOC(H5T_t)))
HGOTO_ERROR (H5E_DATATYPE, H5E_NOSPACE, FAIL, "memory allocation failed");
- if(NULL== (dt->shared->parent->shared = H5FL_CALLOC (H5T_shared_t))) {
- H5FL_FREE(H5T_t, dt->shared->parent);
- HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed");
- }
if (NULL==(dt->shared->parent->shared = H5FL_CALLOC(H5T_shared_t)))
{
H5FL_FREE(H5T_t, dt->shared->parent);
@@ -863,8 +859,6 @@ H5O_dtype_decode(H5F_t *f, hid_t UNUSED dxpl_id, const uint8_t *p,
if (NULL==(dt->shared=H5FL_CALLOC(H5T_shared_t)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
dt->ent.header = HADDR_UNDEF;
- dt->shared->fo_count=1;
-
if (H5O_dtype_decode_helper(f, &p, dt) < 0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTDECODE, NULL, "can't decode type");