summaryrefslogtreecommitdiffstats
path: root/src/H5PLpath.c
diff options
context:
space:
mode:
authorJacob Smith <jake.smith@hdfgroup.org>2019-07-22 22:09:54 (GMT)
committerJacob Smith <jake.smith@hdfgroup.org>2019-07-22 22:09:54 (GMT)
commitc7f8cb011da46e0e764c5da7c2e38b6294756a89 (patch)
tree0f82b10427e889924c79711ce01ae983e4cfc82b /src/H5PLpath.c
parent7ff3a63d5f6c74210a7e5ee064086306436c4062 (diff)
parent6add0919d1dd737a7d9a2da25079d761a85f282e (diff)
downloadhdf5-c7f8cb011da46e0e764c5da7c2e38b6294756a89.zip
hdf5-c7f8cb011da46e0e764c5da7c2e38b6294756a89.tar.gz
hdf5-c7f8cb011da46e0e764c5da7c2e38b6294756a89.tar.bz2
Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/~jake.smith/hdf5 into bugfix/repack_external_storage
Diffstat (limited to 'src/H5PLpath.c')
-rw-r--r--src/H5PLpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5PLpath.c b/src/H5PLpath.c
index 04248b5..e270c73 100644
--- a/src/H5PLpath.c
+++ b/src/H5PLpath.c
@@ -673,7 +673,7 @@ H5PL__find_plugin_in_path(const H5PL_search_params_t *search_params, hbool_t *fo
size_t len;
/* Allocate & initialize the path name */
- len = HDstrlen(dir) + HDstrlen(H5PL_PATH_SEPARATOR) + HDstrlen(dp->d_name) + 1 /*\0*/;
+ len = HDstrlen(dir) + HDstrlen(H5PL_PATH_SEPARATOR) + HDstrlen(dp->d_name) + 1 /*\0*/ + 4; /* Extra "+4" to quiet GCC warning - 2019/07/05, QAK */
if (NULL == (path = (char *)H5MM_calloc(len)))
HGOTO_ERROR(H5E_PLUGIN, H5E_CANTALLOC, FAIL, "can't allocate memory for path")