[gnome-keyring] [daemon] No warning when a disk doesn't have a UDI identifier.
- From: Stefan Walter <stefw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-keyring] [daemon] No warning when a disk doesn't have a UDI identifier.
- Date: Sat, 29 Aug 2009 15:44:56 +0000 (UTC)
commit 13fd62543d55daf4f20cf954b2027bc36d9a92ce
Author: Stef Walter <stef memberwebs com>
Date: Sat Aug 29 15:44:07 2009 +0000
[daemon] No warning when a disk doesn't have a UDI identifier.
daemon/util/gkr-location.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/daemon/util/gkr-location.c b/daemon/util/gkr-location.c
index 85fa24b..c0cf091 100644
--- a/daemon/util/gkr-location.c
+++ b/daemon/util/gkr-location.c
@@ -224,7 +224,11 @@ mount_added (GVolumeMonitor *monitor, GMount *mount, GkrLocationManager *self)
/* Figure out the location name */
identifier = g_volume_get_identifier (volume, G_VOLUME_IDENTIFIER_KIND_HAL_UDI);
- g_return_if_fail (identifier);
+ if (!identifier) {
+ g_object_unref (volume);
+ return;
+ }
+
name = udi_to_location_name (identifier);
g_free (identifier);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]