Rest of MGA dualhead patch.
parent
0b60aad8a5
commit
e2b2bffc6b
|
@ -235,7 +235,7 @@ int N(HashLookup)(void *t, unsigned long key, void **value)
|
|||
HashTablePtr table = (HashTablePtr)t;
|
||||
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);
|
||||
if (!bucket) return 1; /* Not found */
|
||||
|
|
Loading…
Reference in New Issue