From b6a2f502f28b112d791c8834b4ff7e5c8aa0fcd5 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Fri, 9 Sep 2011 13:39:22 -0400 Subject: [PATCH] GRand: Make sure to g_thread_init_glib() The last commit should g_thread_init_glib() before attempting to use GOnce. --- glib/grand.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glib/grand.c b/glib/grand.c index 1e50eddec..21dd72887 100644 --- a/glib/grand.c +++ b/glib/grand.c @@ -133,6 +133,8 @@ get_random_version (void) static gsize initialized = FALSE; static guint random_version; + g_thread_init_glib (); + if (g_once_init_enter (&initialized)) { const gchar *version_string = g_getenv ("G_RANDOM_VERSION");