scanner: check wl_array_add result

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
U. Artie Eoff 2014-05-05 14:45:19 -07:00 committed by Kristian Høgsberg
parent 4a4523fa92
commit 7a17b05187

View file

@ -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: