rdp: Use xzalloc for output creation
Reduce error handling burden Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
f9832bcb0a
commit
801d9c55c8
|
@ -532,9 +532,7 @@ rdp_output_create(struct weston_compositor *compositor, const char *name)
|
|||
{
|
||||
struct rdp_output *output;
|
||||
|
||||
output = zalloc(sizeof *output);
|
||||
if (output == NULL)
|
||||
return NULL;
|
||||
output = xzalloc(sizeof *output);
|
||||
|
||||
weston_output_init(&output->base, compositor, name);
|
||||
|
||||
|
|
Loading…
Reference in New Issue