diff options
author | Laurent Bigonville <bigon@users.noreply.github.com> | 2020-04-16 00:42:00 +0200 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2020-04-16 06:50:36 +0100 |
commit | 274862aeed0be82af72be3520461be2de4b666b8 (patch) | |
tree | 107fb876975b0420e92e9ae75a1a2a7676baeb43 | |
parent | 4dd889150081c7e892d90eb14d83d7ca426809d3 (diff) | |
download | appstream-glib-274862aeed0be82af72be3520461be2de4b666b8.tar.gz |
as-app: Properly initialize unique_id_mutex
That should fix FTBFS on some architectures
Fixes: #356
-rw-r--r-- | libappstream-glib/as-app.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c index d24b2f0..95cef2d 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -476,6 +476,7 @@ static void as_app_init (AsApp *app) { AsAppPrivate *priv = GET_PRIVATE (app); + g_mutex_init (&priv->unique_id_mutex); priv->categories = g_ptr_array_new_with_free_func ((GDestroyNotify) as_ref_string_unref); priv->compulsory_for_desktops = g_ptr_array_new_with_free_func ((GDestroyNotify) as_ref_string_unref); priv->content_ratings = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref); |