From 343656e58a984f4f0671af6cea972f333d27cc82 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 21 Apr 2023 20:57:07 -0700 Subject: [PATCH] Updated. --- src/table.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/table.h b/src/table.h index abcd243..0cd6909 100644 --- a/src/table.h +++ b/src/table.h @@ -748,7 +748,8 @@ static int N_(table_remove)(struct N_(table) *const table, const PN_(key) key) { struct PN_(bucket) *current; PN_(uint) c, p = TABLE_NULL, n, hash = N_(hash)(key); - if(!table || !table->size) return 0; assert(table->buckets); + if(!table || !table->size) return 0; + assert(table->buckets); /* Find item and keep track of previous. */ current = table->buckets + (c = PN_(chain_head)(table, hash)); if((n = current->next) == TABLE_NULL /* No entry here. */