Re: [PATCH weston] clients: Simplify memory allocation with xzalloc()

2015-07-10 Thread Bryce Harrington
On Wed, Jul 01, 2015 at 12:18:26PM +0200, Marek Chalupa wrote: > Reviewed-by: Marek Chalupa Thanks, landed: remote: I: patch #52362 updated using rev da9d8fa3e46cc035f94be6441452a7738327ecf0 remote: I: 1 patch(es) updated to state Accepted. To ssh://git.freedesktop.org/git/wayland/weston 430a

Re: [PATCH weston] clients: Simplify memory allocation with xzalloc()

2015-07-01 Thread Marek Chalupa
Reviewed-by: Marek Chalupa On Sat, Jun 20, 2015 at 1:12 AM, Bryce Harrington wrote: > It is redundant to check x*alloc's return value for null pointers, since > they are guaranteed to either return non-NULL or terminate the program. > > In cases where we memset the malloc'd memory to 0, we can

[PATCH weston] clients: Simplify memory allocation with xzalloc()

2015-06-19 Thread Bryce Harrington
It is redundant to check x*alloc's return value for null pointers, since they are guaranteed to either return non-NULL or terminate the program. In cases where we memset the malloc'd memory to 0, we can more efficiently use the xzalloc() routine. zalloc looks for opportunities to return memory ch