commit | adcd54bc3c6f0740bce7ab822a84e087f910bfac | [log] [tgz] |
---|---|---|
author | Kristian Høgsberg <krh@bitplanet.net> | Thu Aug 15 14:17:13 2013 -0700 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Fri Aug 16 10:55:59 2013 -0700 |
tree | 9cf6a2f81b98d6652e801d121db4dca6b46bcf1f | |
parent | 1a5f0c34ff4a160e586c69be5e1854c040296634 [diff] [blame] |
window: Use xzalloc() instead of failing to add input device
diff --git a/clients/window.c b/clients/window.c index e9b6a5e..ce75f0c 100644 --- a/clients/window.c +++ b/clients/window.c
@@ -4920,10 +4920,7 @@ { 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;