From 7a17b051876d475fb7cd39e9e16f2a61e241a4ad Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Mon, 5 May 2014 14:45:19 -0700 Subject: [PATCH] scanner: check wl_array_add result Signed-off-by: U. Artie Eoff --- src/scanner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.c b/src/scanner.c index 622d4d8..dd1c7b6 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -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: -- 2.7.4