Commit 7a17b051 authored by U. Artie Eoff's avatar U. Artie Eoff Committed by Kristian Høgsberg
Browse files

scanner: check wl_array_add result


Signed-off-by: U. Artie Eoff's avatarU. Artie Eoff <ullysses.a.eoff@intel.com>
parent 4a4523fa
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment