diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2011-11-14 19:42:02 +0100 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2011-11-14 19:42:02 +0100 |
commit | 47a61b04fe209fc76b92de874c446d0a3f44c276 (patch) | |
tree | 26f8b01fd240b7e5017bdfc0c9ec40a12ec96229 /client | |
parent | 200fe6ee11a2bdc244d7ee9335940079756fb66b (diff) | |
download | gvfs-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 'client')
-rw-r--r-- | client/gvfsfusedaemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/gvfsfusedaemon.c b/client/gvfsfusedaemon.c index 5e79638d..d8a13e5e 100644 --- a/client/gvfsfusedaemon.c +++ b/client/gvfsfusedaemon.c @@ -212,6 +212,7 @@ file_handle_new (const gchar *path) file_handle = g_new0 (FileHandle, 1); file_handle->refcount = 1; + g_mutex_init (&file_handle->mutex); file_handle->op = FILE_OP_NONE; file_handle->path = g_strdup (path); @@ -2372,7 +2373,6 @@ vfs_destroy (gpointer param) mount_list_free (); if (subthread_main_loop != NULL) g_main_loop_quit (subthread_main_loop); - g_mutex_clear (&mount_list_mutex); g_object_unref (gvfs); } |