diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-03-08 15:37:33 -0800 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:26 +0200 |
commit | 001aeb55b16633ced88eec1fa3d1a5bf516c83f0 (patch) | |
tree | 808ae0b276d621e99769846194acfc0218b91af6 /nx-X11/lib/X11/PixFormats.c | |
parent | 7ddc5b90f200d3df70ca744d35507799334a8d9e (diff) | |
download | nx-libs-001aeb55b16633ced88eec1fa3d1a5bf516c83f0.tar.gz nx-libs-001aeb55b16633ced88eec1fa3d1a5bf516c83f0.tar.bz2 nx-libs-001aeb55b16633ced88eec1fa3d1a5bf516c83f0.zip |
XAllocClassHint: Assume calloc sets pointers in allocated memory to NULL
While the C standard technically allows for the compiler to translate
pointer = 0 or pointer = NULL into something other than filling the
pointer address with 0 bytes, the rest of the Xlib code already assumes
that calloc initializes any pointers in the struct to NULL, and there
are no known systems supported by X.Org where this is not true.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/PixFormats.c')
0 files changed, 0 insertions, 0 deletions