xserver/dbe
Enrico Weigelt, metux IT consult 9d3dcea6ae dbe: 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:58:08 +02:00
..
dbe.c dbe: use calloc() instead of malloc() 2025-05-22 18:58:08 +02:00
dbestruct.h dbe: drop obsolete NEED_DBE_PROTOCOL 2024-02-28 11:29:39 +01:00
meson.build dbe: unexport dbestruct.h 2024-04-23 02:18:02 +00:00
midbe.c dbe: use dixDestroyPixmap() instead of direct driver call 2025-02-12 17:48:30 +01:00
midbe.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00