diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-03-30 22:40:44 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-03-30 22:40:44 (GMT) |
commit | 0892bf320cba6e5a3b83db41519a4000c2f5e3c4 (patch) | |
tree | a1f81c468ece296167abe95419039a4dbf9ea611 /src | |
parent | 1eb4693aa895fa13e35173907f65f92051ff0cd5 (diff) | |
download | hdf5-0892bf320cba6e5a3b83db41519a4000c2f5e3c4.zip hdf5-0892bf320cba6e5a3b83db41519a4000c2f5e3c4.tar.gz hdf5-0892bf320cba6e5a3b83db41519a4000c2f5e3c4.tar.bz2 |
HDFFV-10143 fix use before set
Diffstat (limited to 'src')
-rw-r--r-- | src/H5PL.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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--; |