From: Sebastian Dröge Date: Sun, 11 Jan 2009 09:46:52 +0000 (+0000) Subject: gst/gstutils.h: Initialize g_once_init* data with 0. Fixes bug #567225. X-Git-Tag: GIT_CONVERSION~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18eb11db60199f8ffd538677920a01dd67aacb49;p=platform%2Fupstream%2Fgstreamer.git gst/gstutils.h: Initialize g_once_init* data with 0. Fixes bug #567225. Original commit message from CVS: * gst/gstutils.h: Initialize g_once_init* data with 0. Fixes bug #567225. --- diff --git a/ChangeLog b/ChangeLog index 8d536ee..fdf6358 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-01-11 Sebastian Dröge + + * gst/gstutils.h: + Initialize g_once_init* data with 0. Fixes bug #567225. + 2009-01-09 Jan Schmidt * configure.ac: diff --git a/gst/gstutils.h b/gst/gstutils.h index 92c9942..55d2732 100644 --- a/gst/gstutils.h +++ b/gst/gstutils.h @@ -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, \