diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-03-30 21:48:10 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-03-30 22:12:53 (GMT) |
commit | 0f9e09a65da283134e3a33c309882b636d07397a (patch) | |
tree | 75c8e88ede27e7ebc5eb4509140f60b7f5732faf /src | |
parent | 33ad855c6b340064256bd1faf6a6db1ee3860f59 (diff) | |
download | hdf5-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')
-rw-r--r-- | src/H5PL.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |