[gvfs/wip/udisks2] udisks2: Check for NULL volume when unmounting
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/udisks2] udisks2: Check for NULL volume when unmounting
- Date: Fri, 14 Oct 2011 17:59:47 +0000 (UTC)
commit 62b8df0bc915149f8c64a04423453ee4f0109d2f
Author: David Zeuthen <davidz redhat com>
Date: Fri Oct 14 13:59:13 2011 -0400
udisks2: Check for NULL volume when unmounting
Signed-off-by: David Zeuthen <davidz redhat com>
monitor/udisks2/gvfsudisks2mount.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/monitor/udisks2/gvfsudisks2mount.c b/monitor/udisks2/gvfsudisks2mount.c
index 31ccca3..54a87d5 100644
--- a/monitor/udisks2/gvfsudisks2mount.c
+++ b/monitor/udisks2/gvfsudisks2mount.c
@@ -935,7 +935,9 @@ gvfs_udisks2_mount_unmount_with_operation (GMount *_mount,
goto out;
}
- block = gvfs_udisks2_volume_get_block (data->mount->volume);
+ block = NULL;
+ if (mount->volume != NULL)
+ block = gvfs_udisks2_volume_get_block (data->mount->volume);
if (block != NULL)
{
GDBusObject *object;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]