summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-08-15 14:17:13 -0700
committerKristian Høgsberg <krh@bitplanet.net>2013-08-16 10:55:59 -0700
commitadcd54bc3c6f0740bce7ab822a84e087f910bfac (patch)
tree9cf6a2f81b98d6652e801d121db4dca6b46bcf1f /clients
parent1a5f0c34ff4a160e586c69be5e1854c040296634 (diff)
window: Use xzalloc() instead of failing to add input device
Diffstat (limited to 'clients')
-rw-r--r--clients/window.c5
1 files changed, 1 insertions, 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;