From 163cf58c9d68cbec83d4addcdf47539e2b2eacab Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 21 Nov 2006 12:30:57 -0500 Subject: [svn-r12958] Description: Remove redundant memset for calloc'ed buffer. Tested on: Linux/32 2.6 (chicago) --- src/H5SM.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/H5SM.c b/src/H5SM.c index 476bcb9..9e27d67 100755 --- a/src/H5SM.c +++ b/src/H5SM.c @@ -616,9 +616,6 @@ 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"); -- cgit v0.12