summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-01-19 21:33:27 +0100
committerAlexander Larsson <alexl@redhat.com>2016-01-19 21:33:27 +0100
commitd27403e2dff0fea6123554e5deb7ccc825449a33 (patch)
tree5f33e9b3e936d25c98f38eb45f63e9e02f24f005
parentad7396c84ba32ea7d5c47cfcd2a4ef661facaaa4 (diff)
downloadappstream-glib-d27403e2dff0fea6123554e5deb7ccc825449a33.tar.gz
ostree: Work around threadsafety issue with g_get_language_names.
-rw-r--r--libappstream-builder/asb-package-ostree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libappstream-builder/asb-package-ostree.c b/libappstream-builder/asb-package-ostree.c
index 3519f8c..52faf5b 100644
--- a/libappstream-builder/asb-package-ostree.c
+++ b/libappstream-builder/asb-package-ostree.c
@@ -68,6 +68,9 @@ asb_package_ostree_finalize (GObject *object)
static void
asb_package_ostree_init (AsbPackageOstree *pkg_ostree)
{
+ /* We call this here so that the alias table in gcharset.c is
+ properly initialized, because it is not threadsafe... */
+ g_get_language_names ();
}
/**