1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From: Michael Terry <mterry@ubuntu.com>
Date: Wed, 11 Apr 2012 16:01:32 -0400
Subject: Don't crash when creating volume monitors if the VFS was never
initialized
Origin: vendor, Ubuntu
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=657323
Bug: https://gitlab.gnome.org/GNOME/gvfs/-/issues/169
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/unity-greeter/+bug/832533
Forwarded: no
---
client/gdaemonvfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/gdaemonvfs.c b/client/gdaemonvfs.c
index 199e50a..d889284 100644
--- a/client/gdaemonvfs.c
+++ b/client/gdaemonvfs.c
@@ -1436,7 +1436,7 @@ g_daemon_vfs_deserialize_icon (GVfs *vfs,
GDBusConnection *
_g_daemon_vfs_get_async_bus (void)
{
- return the_vfs->async_bus;
+ return the_vfs ? the_vfs->async_bus : NULL;
}
static gboolean
|