Rest of MGA dualhead patch.

main
Gareth Hughes 2001-03-13 00:22:05 +00:00
parent 0b60aad8a5
commit e2b2bffc6b
1 changed files with 16 additions and 16 deletions

View File

@ -235,7 +235,7 @@ int N(HashLookup)(void *t, unsigned long key, void **value)
HashTablePtr table = (HashTablePtr)t; HashTablePtr table = (HashTablePtr)t;
HashBucketPtr bucket; HashBucketPtr bucket;
if (table->magic != HASH_MAGIC) return -1; /* Bad magic */ if (!table || table->magic != HASH_MAGIC) return -1; /* Bad magic */
bucket = HashFind(table, key, NULL); bucket = HashFind(table, key, NULL);
if (!bucket) return 1; /* Not found */ if (!bucket) return 1; /* Not found */