GRand: Make sure to g_thread_init_glib()

The last commit should g_thread_init_glib() before attempting to use
GOnce.
This commit is contained in:
Ryan Lortie 2011-09-09 13:39:22 -04:00
parent 71c72d5e13
commit b6a2f502f2

View File

@ -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");