summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_input.c
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-05-10 14:36:35 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-05-10 14:36:35 -0400
commit3954aa5518b7cc05f4c8bc86683d349a00dffe47 (patch)
tree9cfa69d606cbef08b068a2ee8ae4c00d61ad378e /src/lib/elput/elput_input.c
parent05a3cd62191b68ab0a47b9ee9149234175814f9a (diff)
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 <cpmichael@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/elput/elput_input.c3
1 files changed, 3 insertions, 0 deletions
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)
226 goto udev_err; 226 goto udev_err;
227 } 227 }
228 228
229 /* if not seat name is passed in, just use default seat name */
230 if (!seat) seat = "seat0";
231
229 if (libinput_udev_assign_seat(manager->input.lib, seat) != 0) 232 if (libinput_udev_assign_seat(manager->input.lib, seat) != 0)
230 { 233 {
231 ERR("libinput could not assign udev seat"); 234 ERR("libinput could not assign udev seat");