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:
ed68095
)
cosmetic: return NULL instead of 0
author
Marek Chalupa
<mchqwerty@gmail.com>
Wed, 27 Jan 2016 09:06:28 +0000
(10:06 +0100)
committer
Bryce Harrington
<bryce@bryceharrington.org>
Tue, 2 Feb 2016 01:05:16 +0000
(17:05 -0800)
we're returning a pointer
Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
src/wayland-util.c
patch
|
blob
|
history
diff --git
a/src/wayland-util.c
b/src/wayland-util.c
index
e782309
..
3f95877
100644
(file)
--- a/
src/wayland-util.c
+++ b/
src/wayland-util.c
@@
-127,7
+127,7
@@
wl_array_add(struct wl_array *array, size_t size)
data = malloc(alloc);
if (data == NULL)
- return
0
;
+ return
NULL
;
array->data = data;
array->alloc = alloc;
}