summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5R.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5R.c b/src/H5R.c
index 3a2f35d..0a3af40 100644
--- a/src/H5R.c
+++ b/src/H5R.c
@@ -196,7 +196,7 @@ H5R_create(void *_ref, H5G_loc_t *loc, const char *name, H5R_type_t ref_type, H5
} /* end if */
/* Zero the heap ID out, may leak heap space if user is re-using reference and doesn't have garbage collection on */
- HDmemset(ref, H5R_DSET_REG_REF_BUF_SIZE, 0);
+ HDmemset(ref, 0, H5R_DSET_REG_REF_BUF_SIZE);
/* Get the amount of space required to serialize the selection */
if((buf_size = H5S_SELECT_SERIAL_SIZE(space)) < 0)