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 /daemon/gvfsbackendafc.c | |
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 'daemon/gvfsbackendafc.c')
-rw-r--r-- | daemon/gvfsbackendafc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c index 84227ed2..cade065b 100644 --- a/daemon/gvfsbackendafc.c +++ b/daemon/gvfsbackendafc.c @@ -2600,6 +2600,8 @@ g_vfs_backend_afc_init (GVfsBackendAfc *self) /* enable full debugging */ idevice_set_debug_level (1); } + + g_mutex_init (&self->apps_lock); } static void |