summaryrefslogtreecommitdiffstats
path: root/src
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 21:48:10 (GMT)
commitb46aa5aff7119236fcbf726169bdc3ddaf69bc95 (patch)
tree1f32c1ea4cb3e13d1d1df76c9f3bc6008e08cf17 /src
parent51412aa48c6435ef7798f563fb269b13b6c0418c (diff)
downloadhdf5-b46aa5aff7119236fcbf726169bdc3ddaf69bc95.zip
hdf5-b46aa5aff7119236fcbf726169bdc3ddaf69bc95.tar.gz
hdf5-b46aa5aff7119236fcbf726169bdc3ddaf69bc95.tar.bz2
Fix code error and use H5PL_MAX_PATH_NUM in test
Diffstat (limited to 'src')
-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;