xserver/hw/xquartz/GL
Enrico Weigelt, metux IT consult 87c5b5bf42 xquartz: use calloc() instead of malloc()
Using calloc() instead of malloc() as preventive measure, so there
never can be any hidden bugs or leaks due uninitialized memory.

The extra cost of using this compiler intrinsic should be practically
impossible to measure - in many cases a good compiler can even deduce
if certain areas really don't need to be zero'd (because they're written
to right after allocation) and create more efficient machine code.

The code pathes in question are pretty cold anyways, so it's probably
not worth even thinking about potential extra runtime costs.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-04 14:10:18 +02:00
..
capabilities.c xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
capabilities.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
glcontextmodes.c xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
glcontextmodes.h glx: Drop references to <GL/internal/glcore.h> 2017-11-14 16:18:47 -05:00
indirect.c xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
meson.build meson: Convert xquartz from autotools 2019-05-02 15:42:58 +00:00
visualConfigs.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
visualConfigs.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00