From 0b30c8d9cef18f55e2425e32ffc1552af650a1be Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 7 Jun 2009 17:40:06 +0000 Subject: - Add a new test suite for LIBPATTERNS - Fix Savannah bug #21198 - Fix Savannah bug #21823 - Fix Savannah bug #22010 --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index ed7d8fd..7f9530d 100644 --- a/hash.c +++ b/hash.c @@ -126,7 +126,7 @@ void * hash_insert (struct hash_table *ht, const void *item) { void **slot = hash_find_slot (ht, item); - const void *old_item = slot ? *slot : 0; + const void *old_item = *slot; hash_insert_at (ht, item, slot); return (void *)((HASH_VACANT (old_item)) ? 0 : old_item); } -- cgit v1.2.3