summaryrefslogtreecommitdiffstats
path: root/src
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:42:04 (GMT)
commitfbfe6f00fce1caeaed690b4aa04c855c640fad1e (patch)
tree3c545fdfbe36bc8dc9672bc6de052a928cc7b82c /src
parentfd314f93b45fe59ceff3260f7143d831bcb1a152 (diff)
downloadhdf5-fbfe6f00fce1caeaed690b4aa04c855c640fad1e.zip
hdf5-fbfe6f00fce1caeaed690b4aa04c855c640fad1e.tar.gz
hdf5-fbfe6f00fce1caeaed690b4aa04c855c640fad1e.tar.bz2
HDFFV-10143 fix use before set
Diffstat (limited to 'src')
-rw-r--r--src/H5PL.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5PL.c b/src/H5PL.c
index a0692a0..68ced18 100644
--- a/src/H5PL.c
+++ b/src/H5PL.c
@@ -554,7 +554,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--;