gallium: Ensure we don't add null objects to the table, as they mark empty handles.
This commit is contained in:
@@ -175,6 +175,10 @@ handle_table_set(struct handle_table *ht,
|
||||
if(!handle || handle > ht->size)
|
||||
return 0;
|
||||
|
||||
assert(object);
|
||||
if(!object)
|
||||
return 0;
|
||||
|
||||
index = handle - 1;
|
||||
|
||||
/* grow the table if necessary */
|
||||
|
||||
Reference in New Issue
Block a user