diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-11-16 16:19:17 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-11-16 16:19:17 -0500 |
commit | 584ff1df4c4151994410f4c82fabab32d352975c (patch) | |
tree | 06f2933b03384ad904ee214ba2c305d3ac63f3f8 /backend/libinput | |
parent | 12758a00a2d388b050386f017a3a273c1302e648 (diff) | |
parent | 10f3be73843250c400531873b4dd27dba44919fd (diff) |
Merge branch 'master' into feature/wlr-seat-touch
Diffstat (limited to 'backend/libinput')
-rw-r--r-- | backend/libinput/events.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/libinput/events.c b/backend/libinput/events.c index 5da45c67..3ca41124 100644 --- a/backend/libinput/events.c +++ b/backend/libinput/events.c @@ -66,10 +66,11 @@ static void handle_device_added(struct wlr_libinput_backend *backend, int product = libinput_device_get_id_product(libinput_dev); const char *name = libinput_device_get_name(libinput_dev); struct wl_list *wlr_devices = calloc(1, sizeof(struct wl_list)); - wl_list_init(wlr_devices); if (!wlr_devices) { - goto fail; + wlr_log(L_ERROR, "Allocation failed"); + return; } + wl_list_init(wlr_devices); wlr_log(L_DEBUG, "Added %s [%d:%d]", name, vendor, product); if (libinput_device_has_capability(libinput_dev, LIBINPUT_DEVICE_CAP_KEYBOARD)) { |