summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-06-07 17:40:06 +0000
committerPaul Smith <psmith@gnu.org>2009-06-07 17:40:06 +0000
commit4498b1f0c98a4a45441c848ae8bf8458d2ecc683 (patch)
tree40d5d983e80d10d04bee39765bf904c7b83d0f53 /hash.c
parentab7fc3038f254478f1e5a057b6323b5f1c23ff31 (diff)
downloadmake-4498b1f0c98a4a45441c848ae8bf8458d2ecc683.tar.gz
- Add a new test suite for LIBPATTERNS
- Fix Savannah bug #21198 - Fix Savannah bug #21823 - Fix Savannah bug #22010
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index ed7d8fd6..7f9530dd 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);
}