Commit 311849e8 authored by Bastien Nocera's avatar Bastien Nocera

common: Fix possible crash in GsdDeviceMapper

If the input device isn't known to the device mapper (say a keyboard for
example), we'd crash trying to check which output it was attached to.
parent 4f30831e
......@@ -500,6 +500,9 @@ input_info_set_output (GsdInputInfo *input,
static GsdOutputInfo *
input_info_get_output (GsdInputInfo *input)
if (!input)
return NULL;
if (input->output)
return input->output;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment