mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-18 17:40:55 +08:00
HDFFV-10143 fix use before set
This commit is contained in:
parent
1eb4693aa8
commit
0892bf320c
@ -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--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user