projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a5f0c3
)
window: Use xzalloc() instead of failing to add input device
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 15 Aug 2013 21:17:13 +0000
(14:17 -0700)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 16 Aug 2013 17:55:59 +0000
(10:55 -0700)
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index e9b6a5ea6a815b1b33ee49ed883b336484502bf1..ce75f0c834e5c165487ac70e81cdfb3d87ae2459 100644
(file)
--- 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;