projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71c72d5
)
GRand: Make sure to g_thread_init_glib()
author
Ryan Lortie
<desrt@desrt.ca>
Fri, 9 Sep 2011 17:39:22 +0000
(13:39 -0400)
committer
Ryan Lortie
<desrt@desrt.ca>
Fri, 9 Sep 2011 17:39:22 +0000
(13:39 -0400)
The last commit should g_thread_init_glib() before attempting to use
GOnce.
glib/grand.c
patch
|
blob
|
history
diff --git
a/glib/grand.c
b/glib/grand.c
index
1e50edd
..
21dd728
100644
(file)
--- 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");