summaryrefslogtreecommitdiffstats
path: root/src/H5SM.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5SM.c')
-rwxr-xr-xsrc/H5SM.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5SM.c b/src/H5SM.c
index 6c0e3b5..476bcb9 100755
--- a/src/H5SM.c
+++ b/src/H5SM.c
@@ -426,6 +426,7 @@ H5SM_create_list(H5F_t *f, H5SM_index_header_t * header, hid_t dxpl_id)
/* JAMES: would making fewer operations out of this make it faster? */
for(x=0; x<num_entries; x++)
{
+ list->messages[x].ref_count=0;
list->messages[x].fheap_id=0;
list->messages[x].hash=H5O_HASH_UNDEF;
}
@@ -615,6 +616,9 @@ H5SM_write_mesg(H5F_t *f, hid_t dxpl_id, H5SM_index_header_t *header,
if(NULL == (encoding_buf = H5MM_calloc(buf_size)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "can't allocate buffer for encoding");
+ /* JAMES: make purify happy. I think calloc above should do this. */
+ HDmemset(encoding_buf, 0, buf_size);
+
if(H5O_encode(f, encoding_buf, mesg, type_id) < 0)
HGOTO_ERROR(H5E_OHDR, H5E_CANTENCODE, FAIL, "can't encode message to be shared");