xserver/hw
Enrico Weigelt, metux IT consult b5f508dd52 xwayland: 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-05-22 18:59:05 +02:00
..
kdrive kdrive: use calloc() instead of malloc() 2025-05-22 18:59:05 +02:00
vfb vfb: use calloc() instead of malloc() 2025-05-22 18:59:05 +02:00
xfree86 xfree86: use calloc() instead of malloc() 2025-05-22 18:59:05 +02:00
xnest xnest: use calloc() instead of malloc() 2025-05-22 18:59:05 +02:00
xquartz man pages: use .BR to mark up man page references 2025-03-29 13:36:54 -07:00
xwayland xwayland: use calloc() instead of malloc() 2025-05-22 18:59:05 +02:00
xwin xwin: use calloc() instead of malloc() 2025-05-22 18:59:05 +02:00
meson.build meson.build: print a summary of the DDX to build 2025-03-24 03:05:35 +00:00