gst/gstutils.h: Initialize g_once_init* data with 0. Fixes bug #567225.
authorSebastian Dröge <slomo@circular-chaos.org>
Sun, 11 Jan 2009 09:46:52 +0000 (09:46 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Sun, 11 Jan 2009 09:46:52 +0000 (09:46 +0000)
Original commit message from CVS:
* gst/gstutils.h:
Initialize g_once_init* data with 0. Fixes bug #567225.

ChangeLog
gst/gstutils.h

index 8d536ee..fdf6358 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-11  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
+
+       * gst/gstutils.h:
+       Initialize g_once_init* data with 0. Fixes bug #567225.
+
 2009-01-09  Jan Schmidt  <jan.schmidt@sun.com>
 
        * configure.ac:
index 92c9942..55d2732 100644 (file)
@@ -144,7 +144,7 @@ type_as_function ## _get_type (void)                                        \
   /* The typedef for GType may be gulong or gsize, depending on the    \
    * system and whether the compiler is c++ or not. The g_once_init_*  \
    * functions always take a gsize * though ... */                     \
-  static volatile gsize gonce_data;                                    \
+  static volatile gsize gonce_data = 0;                                        \
   if (__gst_once_init_enter (&gonce_data)) {                           \
     GType _type;                                                       \
     _type = gst_type_register_static_full (parent_type_macro,           \