[PATCH wayland] cosmetic: return NULL instead of 0
Marek Chalupa
mchqwerty at gmail.com
Wed Jan 27 01:06:28 PST 2016
we're returning a pointer
Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
---
src/wayland-util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wayland-util.c b/src/wayland-util.c
index e782309..3f95877 100644
--- 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;
}
--
2.5.0
More information about the wayland-devel
mailing list