projects
/
platform
/
upstream
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a4523f
)
scanner: check wl_array_add result
author
U. Artie Eoff
<ullysses.a.eoff@intel.com>
Mon, 5 May 2014 21:45:19 +0000
(14:45 -0700)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 6 May 2014 21:57:35 +0000
(14:57 -0700)
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/scanner.c
patch
|
blob
|
history
diff --git
a/src/scanner.c
b/src/scanner.c
index
622d4d8
..
dd1c7b6
100644
(file)
--- 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: