[ostree: 60/70] fetcher: Initialize output_stream_set_lock mutex
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree: 60/70] fetcher: Initialize output_stream_set_lock mutex
- Date: Fri, 15 Apr 2016 21:06:17 +0000 (UTC)
commit 6a57d0a2f03eddbe44f1d0edaeb5ef32a99d3e69
Author: Alexander Larsson <alexl redhat com>
Date: Wed Apr 13 11:14:20 2016 +0200
fetcher: Initialize output_stream_set_lock mutex
ostree pull-local crashed for me in thread_closure_unref () doing:
g_mutex_clear (&thread_closure->output_stream_set_lock);
Seems like we never initialize this mutex.
Closes: #254
Approved by: cgwalters
src/libostree/ostree-fetcher.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libostree/ostree-fetcher.c b/src/libostree/ostree-fetcher.c
index 26e72c4..d7915ba 100644
--- a/src/libostree/ostree-fetcher.c
+++ b/src/libostree/ostree-fetcher.c
@@ -541,6 +541,7 @@ _ostree_fetcher_constructed (GObject *object)
self->thread_closure->output_stream_set = g_hash_table_new_full (NULL, NULL,
(GDestroyNotify) NULL,
(GDestroyNotify) g_object_unref);
+ g_mutex_init (&self->thread_closure->output_stream_set_lock);
if (g_getenv ("OSTREE_DEBUG_HTTP"))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]