On st 18. Ășnora 2009, Dan Pascu wrote: > On Tuesday 17 February 2009, Vladimir Nadvornik wrote: > > + memset(&fallbackColor, 0, sizeof(fallbackColor)); > > + > > fallbackColor.red = 0x8000; > > fallbackColor.green = 0x8000; > > fallbackColor.blue = 0x8000; > > What is the reason to memset the structure to 0 when you immediately after > that set every structure member individually? >
The structure has more members, which were uninitialized and the compiler didn't like it. It is just a cosmetic issue. Vladimir -- To unsubscribe, send mail to [email protected].
