summaryrefslogtreecommitdiffstats
path: root/src/H5CS.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2016-04-30 06:10:38 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2016-04-30 06:10:38 (GMT)
commitbd33a9d6da4f56884eaf5dc750186a6c02c90446 (patch)
tree2bb71d0ed2ebbb447c28e8e77ecf55ce01340d9f /src/H5CS.c
parentf63b2c50ac95fb8363a9b8143d3a3d5f50c58d35 (diff)
downloadhdf5-bd33a9d6da4f56884eaf5dc750186a6c02c90446.zip
hdf5-bd33a9d6da4f56884eaf5dc750186a6c02c90446.tar.gz
hdf5-bd33a9d6da4f56884eaf5dc750186a6c02c90446.tar.bz2
[svn-r29842] Description:
Bring [appropriate portions of] r29811, 29813, 29826, 29830, 29831 from revise_chunks branch to the trunk. Tested on: MacOSX/64 10.11.4 (amazon) w/serial, parallel & production (h5committest forthcoming)
Diffstat (limited to 'src/H5CS.c')
-rw-r--r--src/H5CS.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5CS.c b/src/H5CS.c
index f1d3a8b..477b5f9 100644
--- a/src/H5CS.c
+++ b/src/H5CS.c
@@ -192,6 +192,8 @@ H5CS_push(const char *func_name)
/* Check if we need to expand the stack of records */
if(fstack->nused == fstack->nalloc) {
size_t na = MAX((fstack->nalloc * 2), H5CS_MIN_NSLOTS);
+
+ /* Don't use H5MM_realloc here */
const char **x = (const char **)HDrealloc(fstack->rec, na * sizeof(const char *));
/* (Avoid returning an error from this routine, currently -QAK) */