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:14:03 (GMT) |
commit | a27c4955fa67ae6e2c12ffa8cf4b5a5d1f25d93f (patch) | |
tree | 52fd694a6aeb14ce405905878c674642cd7cc584 /src | |
parent | 4626032e030e2afcb71ca65b9df72b4aa66f9f8e (diff) | |
download | hdf5-a27c4955fa67ae6e2c12ffa8cf4b5a5d1f25d93f.zip hdf5-a27c4955fa67ae6e2c12ffa8cf4b5a5d1f25d93f.tar.gz hdf5-a27c4955fa67ae6e2c12ffa8cf4b5a5d1f25d93f.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
@@ -417,7 +417,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") @@ -587,7 +586,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; |