[gnome-settings-daemon] Drop buggy error handling leading to a segfault
- From: Sebastien Bacher <sbacher src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] Drop buggy error handling leading to a segfault
- Date: Mon, 20 Feb 2012 16:45:05 +0000 (UTC)
commit 4cb68571999170319a2a8fd8ad29d789999bd3ae
Author: Sebastien Bacher <seb128 ubuntu com>
Date: Thu Feb 16 16:39:35 2012 +0100
Drop buggy error handling leading to a segfault
plugins/power/gsd-backlight-helper.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/plugins/power/gsd-backlight-helper.c b/plugins/power/gsd-backlight-helper.c
index 6e59fcb..fd9325e 100644
--- a/plugins/power/gsd-backlight-helper.c
+++ b/plugins/power/gsd-backlight-helper.c
@@ -53,15 +53,13 @@ static gchar *
gsd_backlight_helper_get_best_backlight ()
{
gchar *path = NULL;
- GError *error = NULL;
GList *devices;
GUdevClient *client;
client = g_udev_client_new (NULL);
devices = g_udev_client_query_by_subsystem (client, "backlight");
if (devices == NULL) {
- g_warning ("failed to find any devices: %s", error->message);
- g_error_free (error);
+ g_warning ("failed to find any devices");
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]