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/gvfsbackendgphoto2.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/gvfsbackendgphoto2.c')
-rw-r--r-- | daemon/gvfsbackendgphoto2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/gvfsbackendgphoto2.c b/daemon/gvfsbackendgphoto2.c index 9a1b6d82..403d5e7a 100644 --- a/daemon/gvfsbackendgphoto2.c +++ b/daemon/gvfsbackendgphoto2.c @@ -1712,6 +1712,8 @@ do_mount (GVfsBackend *backend, gphoto2_backend->free_space = -1; + g_mutex_init (&gphoto2_backend->lock); + gphoto2_mount_spec = g_mount_spec_new ("gphoto2"); g_mount_spec_set (gphoto2_mount_spec, "host", host); g_vfs_backend_set_mount_spec (backend, gphoto2_mount_spec); |