[gst-devel] remove NULL/0 initialisation in _init()

Tim Müller t.i.m at zen.co.uk
Tue Jun 26 13:51:13 CEST 2007


On Tue, 2007-06-26 at 10:24 +0200, Stefan Kost wrote:

> not a big issue, but in most instance _init() functions we set members  
> to NULL/0 which is superflous. If you look at  
> gobjec/gtype.c/g_type_create_instance (GType type) you'll see that it  
> is using g_slice_new0 (was g_new0 in the past).
> 
> Is it okay, if I clean up the redundant inits?

I find those very useful when reading code. Even if they are
superfluous, removing them feels like pointless micro-optimisation to
me. </random opinion>

 Cheers
  -Tim






More information about the gstreamer-devel mailing list