GNOME Bugzilla – Bug 567225
volatile gonce_data in BOILERPLATE not initialized to 0
Last modified: 2009-01-11 09:46:38 UTC
the gonce_data in the BOILERPLATE should be initialized to 0, otherwise the retval may be bogus.
Created attachment 126160 [details] [review] once-init.diff We should get this in the next release
Aren't static variables always automatically initialised to zero (as per e.g. ISO/IEC 1999 C 6.2.4 and 6.7.8)? I've never heard of a compiler that doesn't do that. Not that it hurts to do it either ..
Tim speaks the truth. This patch is a matter of style, although one that I happen to agree with.
2009-01-11 Sebastian Dröge <sebastian.droege@collabora.co.uk> * gst/gstutils.h: Initialize g_once_init* data with 0. Fixes bug #567225.