mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-09 07:32:32 +08:00
[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
This commit is contained in:
parent
294647ea97
commit
c91edf2b3a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user