summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2008-03-05 09:27:06 +0000
committerAlexander Larsson <alexl@src.gnome.org>2008-03-05 09:27:06 +0000
commit648181f299d282855456752ea328a1e5e01881b6 (patch)
treeb6cc60c042aee7dd6c96386ab5024758f264380d /client
parentff681b817d6094ddf9bd8c95e76341ea72c5319f (diff)
downloadgvfs-648181f299d282855456752ea328a1e5e01881b6.tar.gz
Initialize drive variable not access undefined memory (#520388)
2008-03-05 Alexander Larsson <alexl@redhat.com> * client/gdaemonmount.c: (g_daemon_mount_eject_finish): Initialize drive variable not access undefined memory (#520388) svn path=/trunk/; revision=1549
Diffstat (limited to 'client')
-rw-r--r--client/gdaemonmount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/gdaemonmount.c b/client/gdaemonmount.c
index c6c302e6..02bfe5ec 100644
--- a/client/gdaemonmount.c
+++ b/client/gdaemonmount.c
@@ -338,7 +338,8 @@ g_daemon_mount_eject_finish (GMount *mount,
res = TRUE;
G_LOCK (daemon_mount);
-
+
+ drive = NULL;
if (daemon_mount->foreign_volume != NULL)
drive = g_volume_get_drive (G_VOLUME (daemon_mount->foreign_volume));