cosmetic: return NULL instead of 0

we're returning a pointer

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
Marek Chalupa 2016-01-27 10:06:28 +01:00 committed by Bryce Harrington
parent ed680954c8
commit 5ac34a1012

View File

@ -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;
}