summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendftp.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2011-11-14 19:42:02 +0100
committerTomas Bzatek <tbzatek@redhat.com>2011-11-14 19:42:02 +0100
commit47a61b04fe209fc76b92de874c446d0a3f44c276 (patch)
tree26f8b01fd240b7e5017bdfc0c9ec40a12ec96229 /daemon/gvfsbackendftp.c
parent200fe6ee11a2bdc244d7ee9335940079756fb66b (diff)
downloadgvfs-47a61b04fe209fc76b92de874c446d0a3f44c276.tar.gz
Explicitly intialize mutexes on stack
Turned out zeroing memory is not enough in some cases so let's be on the safe side and properly initialize all non-static mutexes. Also, don't initialize/clear the static ones.
Diffstat (limited to 'daemon/gvfsbackendftp.c')
-rw-r--r--daemon/gvfsbackendftp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/gvfsbackendftp.c b/daemon/gvfsbackendftp.c
index 3883ca3b..c92a9f9a 100644
--- a/daemon/gvfsbackendftp.c
+++ b/daemon/gvfsbackendftp.c
@@ -395,6 +395,8 @@ g_vfs_backend_ftp_finalize (GObject *object)
static void
g_vfs_backend_ftp_init (GVfsBackendFtp *ftp)
{
+ g_mutex_init (&ftp->mutex);
+ g_cond_init (&ftp->cond);
}
static void