diff options
author | Kalev Lember <klember@redhat.com> | 2020-06-11 09:28:44 +0200 |
---|---|---|
committer | Kalev Lember <klember@redhat.com> | 2020-06-11 09:30:27 +0200 |
commit | ca94fcb250155cb7aedc7544b07587c95df00ef6 (patch) | |
tree | a2f8c136c20e39575388d9d437ac7d427e6c895f | |
parent | e00e4b87b71d67bca58e202b7fd5c83a77286d4e (diff) | |
download | appstream-glib-wip/kalev/mutex-init-twice.tar.gz |
as-app: Don't initialize mutex twicewip/kalev/mutex-init-twice
We managed to merge two MRs to initialize the unique id mutex. Remove
one of the g_mutex_init calls to avoid doing it twice.
-rw-r--r-- | libappstream-glib/as-app.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c index 95cef2d..f5c8614 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -525,7 +525,6 @@ as_app_init (AsApp *app) priv->urls = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify) as_ref_string_unref, (GDestroyNotify) as_ref_string_unref); - g_mutex_init (&priv->unique_id_mutex); priv->token_cache = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify) as_ref_string_unref, g_free); |