summaryrefslogtreecommitdiffstats
path: root/src
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:04:26 (GMT)
commit4626032e030e2afcb71ca65b9df72b4aa66f9f8e (patch)
treee9d11353802f91887d0b6b9339a67378dca7b993 /src
parent06ed851867bd3751bcb7c888f5fd1a5a3aee5780 (diff)
downloadhdf5-4626032e030e2afcb71ca65b9df72b4aa66f9f8e.zip
hdf5-4626032e030e2afcb71ca65b9df72b4aa66f9f8e.tar.gz
hdf5-4626032e030e2afcb71ca65b9df72b4aa66f9f8e.tar.bz2
HDFFV-10143 Cleanup due to comments
Diffstat (limited to 'src')
-rw-r--r--src/H5PL.c6
-rw-r--r--src/H5PLpkg.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/src/H5PL.c b/src/H5PL.c
index b063fd1..f6e8368 100644
--- a/src/H5PL.c
+++ b/src/H5PL.c
@@ -548,18 +548,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;
diff --git a/src/H5PLpkg.h b/src/H5PLpkg.h
index 2761a33..5cf3096 100644
--- a/src/H5PLpkg.h
+++ b/src/H5PLpkg.h
@@ -29,13 +29,13 @@
/* Package Private Macros */
/**************************/
+#define H5PL_MAX_PATH_NUM 16
+
/****************************/
/* Package Private Typedefs */
/****************************/
-#define H5PL_MAX_PATH_NUM 16
-
/*****************************/
/* Package Private Variables */