xserver/hw/xquartz/xpr
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
..
appledri.c xquartz: drop unused includes of colormapst.h 2025-06-12 17:21:43 +02:00
appledri.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
appledristr.h Remove obsolete B16 & B32 tags in struct definitions 2018-11-10 15:00:31 -08:00
dri.c xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
dri.h xquartz: Remove useless DRIWindowExposures 2014-10-08 16:01:35 +02:00
driWrap.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
driWrap.h hw: add/fix include guards where missing/broken 2025-06-27 13:58:05 +02:00
dristruct.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
meson.build meson: Convert xquartz from autotools 2019-05-02 15:42:58 +00:00
x-hash.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
x-hash.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
x-hook.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
x-hook.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
x-list.c xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
x-list.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
xpr.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
xprAppleWM.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
xprCursor.c xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
xprEvent.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
xprEvent.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
xprFrame.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
xprScreen.c xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00