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:

committed by
Brian Paul

parent
0691b37732
commit
0c04cca0e1
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user