aboutsummaryrefslogtreecommitdiffstats
path: root/src/scanner.c
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2014-05-05 14:45:19 -0700
committerKristian Høgsberg <krh@bitplanet.net>2014-05-06 14:57:35 -0700
commit7a17b051876d475fb7cd39e9e16f2a61e241a4ad (patch)
tree31d8495d3e61167342f5a1e93bf82488a54af9cc /src/scanner.c
parentconfigure.ac: Bump version to 1.4.92 (diff)
downloadwayland-7a17b051876d475fb7cd39e9e16f2a61e241a4ad.tar
wayland-7a17b051876d475fb7cd39e9e16f2a61e241a4ad.tar.gz
wayland-7a17b051876d475fb7cd39e9e16f2a61e241a4ad.tar.bz2
wayland-7a17b051876d475fb7cd39e9e16f2a61e241a4ad.tar.lz
wayland-7a17b051876d475fb7cd39e9e16f2a61e241a4ad.tar.xz
wayland-7a17b051876d475fb7cd39e9e16f2a61e241a4ad.tar.zst
wayland-7a17b051876d475fb7cd39e9e16f2a61e241a4ad.zip
scanner: check wl_array_add result
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Diffstat (limited to 'src/scanner.c')
-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: