cosmetic: return NULL instead of 0
authorMarek Chalupa <mchqwerty@gmail.com>
Wed, 27 Jan 2016 09:06:28 +0000 (10:06 +0100)
committerBryce 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

index e782309..3f95877 100644 (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;
        }