summaryrefslogtreecommitdiffstats
path: root/src/H5PL.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-03-30 20:03:31 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-03-30 20:03:31 (GMT)
commit51412aa48c6435ef7798f563fb269b13b6c0418c (patch)
tree83eb851815dbaf188c90ca7622dd3890770c7864 /src/H5PL.c
parente51c624ac0b27e0a5aeff86cd338716ecf8c8b0c (diff)
downloadhdf5-51412aa48c6435ef7798f563fb269b13b6c0418c.zip
hdf5-51412aa48c6435ef7798f563fb269b13b6c0418c.tar.gz
hdf5-51412aa48c6435ef7798f563fb269b13b6c0418c.tar.bz2
HDFFV-10143 Cleanup due to comments
Diffstat (limited to 'src/H5PL.c')
-rw-r--r--src/H5PL.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/H5PL.c b/src/H5PL.c
index 0957629..78ccd88 100644
--- a/src/H5PL.c
+++ b/src/H5PL.c
@@ -558,18 +558,16 @@ herr_t
H5PLremove(unsigned int index)
{
herr_t ret_value = SUCCEED; /* Return value */
- char *dl_path = NULL;
unsigned int plindex;
FUNC_ENTER_API(FAIL)
if(H5PL_num_paths_g == 0)
HGOTO_ERROR(H5E_PLUGIN, H5E_NOSPACE, FAIL, "no directories in table")
- if(NULL == (dl_path = H5PL_path_table_g[index]))
+ if(NULL == H5PL_path_table_g[index])
HGOTO_ERROR(H5E_PLUGIN, H5E_CANTALLOC, FAIL, "no directory path at index")
+ H5PL_path_table_g[plindex] = (char *)H5MM_xfree(H5PL_path_table_g[plindex]);
for(plindex = index; plindex < (unsigned int)H5PL_num_paths_g; plindex++)
H5PL_path_table_g[plindex] = H5PL_path_table_g[plindex + 1];
- if(H5PL_path_table_g[plindex])
- dl_path = (char *)H5MM_xfree(dl_path);
H5PL_num_paths_g--;
H5PL_path_table_g[H5PL_num_paths_g] = NULL;