mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 02:30:12 +01:00
Rest of MGA dualhead patch.
This commit is contained in:
parent
0b60aad8a5
commit
e2b2bffc6b
1 changed files with 16 additions and 16 deletions
|
|
@ -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…
Add table
Reference in a new issue