[PATCH] xkb: when copying the keymap, make sure the structs default to 0/NULL.

Peter Hutterer mailinglists at who-t.net
Thu Feb 7 18:38:10 PST 2008


Daniel Stone wrote:
> On Thu, Feb 07, 2008 at 11:23:08PM +1030, Peter Hutterer wrote:
>> so I take it the following patch may be a good idea too?
> 
> Nope, that part is actually correct (far as I know), since we've always
> allocated it to num_foo, and set one of num or sz correctly.
> 

So I gather sz_doodads is supposed to be the number of allocated structs
and num_doodads the actual number of contents? (which just happens to be
the same here)

thanks for the review.




More information about the xorg mailing list