aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/scanner.c2
1 files changed, 1 insertions, 1 deletions
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: