From adcd54bc3c6f0740bce7ab822a84e087f910bfac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 15 Aug 2013 14:17:13 -0700 Subject: [PATCH] window: Use xzalloc() instead of failing to add input device --- clients/window.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clients/window.c b/clients/window.c index e9b6a5ea..ce75f0c8 100644 --- a/clients/window.c +++ b/clients/window.c @@ -4920,10 +4920,7 @@ display_add_input(struct display *d, uint32_t id) { struct input *input; - input = zalloc(sizeof *input); - if (input == NULL) - return; - + input = xzalloc(sizeof *input); input->display = d; input->seat = wl_registry_bind(d->registry, id, &wl_seat_interface, 1); input->pointer_focus = NULL;