From 3954aa5518b7cc05f4c8bc86683d349a00dffe47 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 10 May 2016 14:36:35 -0400 Subject: [PATCH] elput: Fix issue of NULL seat named being passed during input init When calling elput_input_init we need to check for a valid seat name being passed in. If no seat name is provided, we will use the default seat name. @fix Signed-off-by: Chris Michael --- src/lib/elput/elput_input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/elput/elput_input.c b/src/lib/elput/elput_input.c index 11269dfe07..f90b4ed0bd 100644 --- a/src/lib/elput/elput_input.c +++ b/src/lib/elput/elput_input.c @@ -226,6 +226,9 @@ elput_input_init(Elput_Manager *manager, const char *seat) goto udev_err; } + /* if not seat name is passed in, just use default seat name */ + if (!seat) seat = "seat0"; + if (libinput_udev_assign_seat(manager->input.lib, seat) != 0) { ERR("libinput could not assign udev seat");