diff options
author | Chris Michael <cpmichael@osg.samsung.com> | 2016-05-10 14:36:35 -0400 |
---|---|---|
committer | Chris Michael <cpmichael@osg.samsung.com> | 2016-05-10 14:36:35 -0400 |
commit | 3954aa5518b7cc05f4c8bc86683d349a00dffe47 (patch) | |
tree | 9cfa69d606cbef08b068a2ee8ae4c00d61ad378e /src/lib/elput | |
parent | 05a3cd62191b68ab0a47b9ee9149234175814f9a (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 'src/lib/elput')
-rw-r--r-- | src/lib/elput/elput_input.c | 3 |
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"); |