On Monday 11 January 2010 23:19:52 Johannes Berg wrote: > On Mon, 2010-01-11 at 23:13 +0100, Michael Buesch wrote: > > > No I don't think so. > > It's C standard that uninitialized elements on automatic variables are > > initialized > > to zero, _if_ at least one element is initialized to something. > > So if you init one element to 0, all others will be 0, too. > > AFAIK, you don't even have to init anything, since otherwise not > mentioned fields will be set to 0. Hence, just = {} is sufficient for > arrays and will hopefully compile to the same code as an explicit > memset(). Oh, nice. You are right, indeed. I didn't know that. -- Greetings, Michael. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html