xserver/hw
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
..
kdrive kdrive: ephyr: use c99 struct initialization 2025-07-01 16:50:01 +02:00
vfb Xi: unexport AssignTypeAndName() 2025-06-12 17:21:46 +02:00
xfree86 xfree86: compat: make xf86MsgVerb() a bit less noisier 2025-07-03 16:55:14 +02:00
xnest Xnest: fix analyzer warning on uninitialized `DefaultVisual` 2025-06-30 20:30:46 +02:00
xquartz xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
xwin hw: add/fix include guards where missing/broken 2025-06-27 13:58:05 +02:00
meson.build drop Xwayland 2025-06-17 12:51:36 +02:00