[PATCH wayland] cosmetic: return NULL instead of 0
Bryce Harrington
bryce at osg.samsung.com
Tue Feb 2 01:05:41 UTC 2016
On Wed, Jan 27, 2016 at 10:06:28AM +0100, Marek Chalupa wrote:
> we're returning a pointer
>
> Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
Reviewed-by: Bryce Harrington <bryce at osg.samsung.com>
And pushed:
To ssh://git.freedesktop.org/git/wayland/wayland
ed68095..5ac34a1 master -> master
> ---
> 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
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list