summaryrefslogtreecommitdiffstats
path: root/src/H5PL.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-03-30 21:48:10 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-03-30 22:12:53 (GMT)
commit0f9e09a65da283134e3a33c309882b636d07397a (patch)
tree75c8e88ede27e7ebc5eb4509140f60b7f5732faf /src/H5PL.c
parent33ad855c6b340064256bd1faf6a6db1ee3860f59 (diff)
downloadhdf5-0f9e09a65da283134e3a33c309882b636d07397a.zip
hdf5-0f9e09a65da283134e3a33c309882b636d07397a.tar.gz
hdf5-0f9e09a65da283134e3a33c309882b636d07397a.tar.bz2
Fix code error and use H5PL_MAX_PATH_NUM in test
Diffstat (limited to 'src/H5PL.c')
-rw-r--r--src/H5PL.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/H5PL.c b/src/H5PL.c
index 78ccd88..b5a55f5 100644
--- a/src/H5PL.c
+++ b/src/H5PL.c
@@ -427,7 +427,6 @@ H5PLappend(const char* plugin_path)
HGOTO_ERROR(H5E_PLUGIN, H5E_NOSPACE, FAIL, "too many directories in path for table")
if(NULL == plugin_path)
HGOTO_ERROR(H5E_PLUGIN, H5E_CANTALLOC, FAIL, "no path provided")
- dl_path = H5MM_strdup(plugin_path);
if(NULL == (dl_path = H5MM_strdup(plugin_path)))
HGOTO_ERROR(H5E_PLUGIN, H5E_CANTALLOC, FAIL, "can't allocate memory for path")
@@ -597,7 +596,7 @@ done:
ssize_t
H5PLget(unsigned int index, char *pathname/*out*/, size_t size)
{
- ssize_t ret_value = FAIL; /* Return value */
+ ssize_t ret_value = 0; /* Return value */
ssize_t len = 0; /* Length of pathname */
char *dl_path = NULL;