Package: gvfs / 1.38.1-5

handle-inactive-vfs.patch Patch series | download
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
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-Ubuntu: LP #832533
---
 client/gdaemonvfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/gdaemonvfs.c b/client/gdaemonvfs.c
index bae13eb..e3fbd8a 100644
--- a/client/gdaemonvfs.c
+++ b/client/gdaemonvfs.c
@@ -1434,7 +1434,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