summaryrefslogtreecommitdiffstats
path: root/src/H5Zfletcher32.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-03-06 19:53:23 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-03-06 19:53:23 (GMT)
commit89ffc9f2d7b5c9f929c761823296f60abf4bc7df (patch)
tree521dda7a2680e7ad76e63af969b2bfed0902cf83 /src/H5Zfletcher32.c
parent84f0d4735a2e4a91d8e7bc0b2028c9234dc9fc7c (diff)
downloadhdf5-89ffc9f2d7b5c9f929c761823296f60abf4bc7df.zip
hdf5-89ffc9f2d7b5c9f929c761823296f60abf4bc7df.tar.gz
hdf5-89ffc9f2d7b5c9f929c761823296f60abf4bc7df.tar.bz2
[svn-r26387] warning fixes from Feb27.
Diffstat (limited to 'src/H5Zfletcher32.c')
-rw-r--r--src/H5Zfletcher32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5Zfletcher32.c b/src/H5Zfletcher32.c
index 7f67015..2ee69d1 100644
--- a/src/H5Zfletcher32.c
+++ b/src/H5Zfletcher32.c
@@ -137,9 +137,11 @@ H5Z_filter_fletcher32 (unsigned flags, size_t UNUSED cd_nelmts, const unsigned U
/* Compute checksum (can't fail) */
fletcher = H5_checksum_fletcher32(src, nbytes);
- if (NULL==(dst=outbuf=H5MM_malloc(nbytes+FLETCHER_LEN)))
+ if (NULL == (outbuf = H5MM_malloc(nbytes + FLETCHER_LEN)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, 0, "unable to allocate Fletcher32 checksum destination buffer")
+ dst = (unsigned char *) outbuf;
+
/* Copy raw data */
HDmemcpy((void*)dst, (void*)(*buf), nbytes);