mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
scanner: check wl_array_add result
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
parent
4a4523fa92
commit
7a17b05187
1 changed files with 1 additions and 1 deletions
|
|
@ -1039,7 +1039,7 @@ emit_types_forward_declarations(struct protocol *protocol,
|
|||
continue;
|
||||
|
||||
m->all_null = 0;
|
||||
p = wl_array_add(types, sizeof *p);
|
||||
p = fail_on_null(wl_array_add(types, sizeof *p));
|
||||
*p = a->interface_name;
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue