window: Use xzalloc() instead of failing to add input device
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 15 Aug 2013 21:17:13 +0000 (14:17 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 16 Aug 2013 17:55:59 +0000 (10:55 -0700)
clients/window.c

index e9b6a5e..ce75f0c 100644 (file)
@@ -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;