From 18eb11db60199f8ffd538677920a01dd67aacb49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 11 Jan 2009 09:46:52 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ gst/gstutils.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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, \ -- 2.7.4