From: Alexander Larsson Date: Wed, 13 Apr 2016 09:14:20 +0000 (+0200) Subject: fetcher: Initialize output_stream_set_lock mutex X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~53^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6a57d0a2f03eddbe44f1d0edaeb5ef32a99d3e69;p=ostree.git 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 --- diff --git a/src/libostree/ostree-fetcher.c b/src/libostree/ostree-fetcher.c index 26e72c45..d7915ba6 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")) {