summaryrefslogtreecommitdiff
path: root/common/gmounttracker.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 /common/gmounttracker.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 'common/gmounttracker.c')
-rw-r--r--common/gmounttracker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/gmounttracker.c b/common/gmounttracker.c
index 135a2b25..3c6a8eb9 100644
--- a/common/gmounttracker.c
+++ b/common/gmounttracker.c
@@ -541,6 +541,7 @@ init_connection (GMountTracker *tracker)
static void
g_mount_tracker_init (GMountTracker *tracker)
{
+ g_mutex_init (&tracker->lock);
}