summaryrefslogtreecommitdiffstats
path: root/src/H5Ofphdf5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Ofphdf5.c')
-rw-r--r--src/H5Ofphdf5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Ofphdf5.c b/src/H5Ofphdf5.c
index 5b4afb3..a35d001 100644
--- a/src/H5Ofphdf5.c
+++ b/src/H5Ofphdf5.c
@@ -107,7 +107,7 @@ H5O_fphdf5_decode(H5F_t *f, const uint8_t *p, H5O_shared_t UNUSED *sh)
assert(!sh);
/* decode */
- fmeta = H5FL_ALLOC(H5O_fphdf5_t, 1);
+ fmeta = H5FL_CALLOC(H5O_fphdf5_t);
/* decode the OID first */
NBYTEDECODE(p, fmeta->oid, sizeof(fmeta->oid));
@@ -333,7 +333,7 @@ H5O_fphdf5_copy(const void *mesg, void *dest)
/* check args */
assert(src);
- if (!dst && NULL == (dst = H5FL_ALLOC(H5O_fphdf5_t, 0)))
+ if (!dst && NULL == (dst = H5FL_MALLOC(H5O_fphdf5_t)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
/* copy the individual metadata*/