> Use calloc for the array of pointers to ensure pointers are cleared
> out so we don't try to free garbage if XdmcpDisposeARRAYofARRAY8 is
> called before the caller sets them to valid pointers.

C does not promise that all-bits-0 (what calloc produces) gives nil
pointers (what you need here).  Has X.org given up on portability to
systems where all-bits-0 is not a nil pointer?  If not, this is a nasty
bug waiting to happen.

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML                [email protected]
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to