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:
parent
ed680954c8
commit
5ac34a1012
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user