gallium: Ensure we don't add null objects to the table, as they mark empty handles.
This commit is contained in:
parent
c2bf23b837
commit
cb98f71d42
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue