From c91edf2b3ae4eb22b083481583db5d6395c96e06 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 14 Oct 2002 14:41:11 -0500 Subject: [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 --- src/H5Olayout.c | 6 ++---- 1 file 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; } -- cgit v0.12