summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-10-14 19:41:11 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-10-14 19:41:11 (GMT)
commitc91edf2b3ae4eb22b083481583db5d6395c96e06 (patch)
tree1bf18b94a3e46ee7a490f63009b42a315fceccf6
parent294647ea977789d05a79107cc36fd3fc69b980be (diff)
downloadhdf5-c91edf2b3ae4eb22b083481583db5d6395c96e06.zip
hdf5-c91edf2b3ae4eb22b083481583db5d6395c96e06.tar.gz
hdf5-c91edf2b3ae4eb22b083481583db5d6395c96e06.tar.bz2
[svn-r5988] Purpose:
Code cleanup Description: Changed a HRETURN_ERROR to HGOTO_ERROR Platforms tested: FreeBSD 4.6 (sleipnir) w and w/o parallel Linux 2.2.x (eirene) w/FORTRAN & C++ Solaris 2.7 (arabica) w/FORTRAN IRIX64 6.5 (modi4) w/FORTRAN & parallel
-rw-r--r--src/H5Olayout.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/H5Olayout.c b/src/H5Olayout.c
index 08b2d2f..8be6627 100644
--- a/src/H5Olayout.c
+++ b/src/H5Olayout.c
@@ -124,10 +124,8 @@ H5O_layout_decode(H5F_t *f, const uint8_t *p, H5O_shared_t UNUSED *sh)
if(mesg->type == H5D_COMPACT) {
UINT32DECODE(p, mesg->size);
if(mesg->size > 0) {
- if(NULL==(mesg->buf=H5MM_malloc(mesg->size))) {
- HRETURN_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL,
- "memory allocation failed for fill value");
- }
+ if(NULL==(mesg->buf=H5MM_malloc(mesg->size)))
+ HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed for fill value");
HDmemcpy(mesg->buf, p, mesg->size);
p += mesg->size;
}