summaryrefslogtreecommitdiffstats
path: root/src/H5PL.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-03-30 22:40:44 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-03-30 22:41:35 (GMT)
commitc99679337ac234f70bc6d44e3ccba9455bf794b4 (patch)
tree2baa840f027626e2dcfa94a8fdc7a3427ccc57eb /src/H5PL.c
parentf1e64c512ab785f10184c0f03c448c30bc9ca445 (diff)
downloadhdf5-c99679337ac234f70bc6d44e3ccba9455bf794b4.zip
hdf5-c99679337ac234f70bc6d44e3ccba9455bf794b4.tar.gz
hdf5-c99679337ac234f70bc6d44e3ccba9455bf794b4.tar.bz2
HDFFV-10143 fix use before set
Diffstat (limited to 'src/H5PL.c')
-rw-r--r--src/H5PL.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5PL.c b/src/H5PL.c
index b5a55f5..fe7b26b 100644
--- a/src/H5PL.c
+++ b/src/H5PL.c
@@ -564,7 +564,7 @@ H5PLremove(unsigned int index)
HGOTO_ERROR(H5E_PLUGIN, H5E_NOSPACE, FAIL, "no directories in table")
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]);
+ H5PL_path_table_g[index] = (char *)H5MM_xfree(H5PL_path_table_g[index]);
for(plindex = index; plindex < (unsigned int)H5PL_num_paths_g; plindex++)
H5PL_path_table_g[plindex] = H5PL_path_table_g[plindex + 1];
H5PL_num_paths_g--;