From 956db26900434b21d664714c874cb722e40658bb Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 15 Apr 2026 08:04:28 -0500 Subject: [PATCH] Auto-commit fuse.cpp --- vendored/libfuse/lib/fuse.cpp | 39 +++++++++++++++++------------------ 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/vendored/libfuse/lib/fuse.cpp b/vendored/libfuse/lib/fuse.cpp index a28df9a5..53e45faf 100644 --- a/vendored/libfuse/lib/fuse.cpp +++ b/vendored/libfuse/lib/fuse.cpp @@ -463,30 +463,29 @@ unhash_name(node_t *node) size_t hash = name_hash(node->parent->nodeid,node->name); node_t **nodep = &f.name_table.array[hash]; - for(; *nodep != NULL; nodep = &(*nodep)->name_next) + for(; *nodep != NULL; nodep = &(*nodep)->name_next) + { + if(*nodep == node) { - if(*nodep == node) - { - *nodep = node->name_next; - node->name_next = NULL; - unref_node(node->parent); - free(node->name); - node->name = NULL; - node->parent = NULL; - f.name_table.use--; + *nodep = node->name_next; + node->name_next = NULL; + unref_node(node->parent); + free(node->name); + node->name = NULL; + node->parent = NULL; + f.name_table.use--; - if(f.name_table.use < f.name_table.size / 4) - remerge_name(); - return; - } + if(f.name_table.use < f.name_table.size / 4) + remerge_name(); + return; } - - fprintf(stderr, - "fuse internal error: unable to unhash node: %llu\n", - (unsigned long long)node->nodeid); - - abort(); } + + fprintf(stderr, + "fuse internal error: unable to unhash node: %llu\n", + (unsigned long long)node->nodeid); + + abort(); } static