From 8642bf7b8d0c353d0d0faaa14c6480a3dfafca33 Mon Sep 17 00:00:00 2001 From: theraven Date: Wed, 3 Feb 2010 02:33:33 +0000 Subject: [PATCH] Fixed statement order in hash_table.h --- hash_table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hash_table.h b/hash_table.h index ef88d09..6018200 100644 --- a/hash_table.h +++ b/hash_table.h @@ -359,8 +359,8 @@ static void PREFIX(_remove)(PREFIX(_table) *table, void *key) { uint32_t hash = MAP_TABLE_HASH_KEY((void*)key); PREFIX(_table_cell) cell = PREFIX(_table_get_cell)(table, key); - cell->value = MAP_TABLE_VALUE_PLACEHOLDER; if (NULL == cell) { return; } + cell->value = MAP_TABLE_VALUE_PLACEHOLDER; // If the cell contains a value, set it to the placeholder and shuffle up // everything PREFIX(_table_move_gap)(table, hash + 32, hash, cell);