[gnome-settings-daemon/gnome-3-14] common: Fix possible crash in GsdDeviceMapper
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-14] common: Fix possible crash in GsdDeviceMapper
- Date: Tue, 11 Nov 2014 15:44:55 +0000 (UTC)
commit c9e8b3e0d023cd1f089a558cead5df29eacadaeb
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jul 25 11:53:16 2014 +0200
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.
https://bugzilla.gnome.org/show_bug.cgi?id=720295
plugins/common/gsd-device-mapper.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/common/gsd-device-mapper.c b/plugins/common/gsd-device-mapper.c
index 6bf23cb..41cd0f5 100644
--- a/plugins/common/gsd-device-mapper.c
+++ b/plugins/common/gsd-device-mapper.c
@@ -502,6 +502,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]