mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
glx: Add missing null check in __glXNewIndirectAPI()
Add extra null check in auto generated indirect_init.c via src/mapi/glapi/gen/glX_proto_send.py Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
0691b37732
commit
0c04cca0e1
1 changed files with 2 additions and 0 deletions
|
|
@ -971,6 +971,8 @@ struct _glapi_table * __glXNewIndirectAPI( void )
|
|||
|
||||
entries = _glapi_get_dispatch_table_size();
|
||||
table = malloc(entries * sizeof(_glapi_proc));
|
||||
if (table == NULL)
|
||||
return NULL;
|
||||
|
||||
/* first, set all entries to point to no-op functions */
|
||||
for (i = 0; i < entries; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue