Port to recent Gnulib hash_remove
Problem reported by Bruno Haible in: https://lists.gnu.org/r/bug-tar/2025-04/msg00003.html * src/incremen.c (remove_directory): hash_delete → hash_remove.
This commit is contained in:
@@ -428,7 +428,7 @@ void
|
||||
remove_directory (const char *caname)
|
||||
{
|
||||
struct directory *dir = make_directory (caname, xstrdup (caname));
|
||||
struct directory *ret = hash_delete (directory_table, dir);
|
||||
struct directory *ret = hash_remove (directory_table, dir);
|
||||
if (ret)
|
||||
free_directory (ret);
|
||||
free_directory (dir);
|
||||
|
||||
Reference in New Issue
Block a user