xserver/hw/vfb
Enrico Weigelt, metux IT consult a83f56eb92 vfb: 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-06-12 16:49:54 +02:00
..
man man pages: remove extraneous PP macros 2025-05-31 15:01:49 -07:00
.gitignore Xvfb: build Xvfb man pages using XORG_MANPAGE_SECTIONS 2011-01-18 15:10:24 -08:00
InitInput.c mi: unexport mieqInit() 2025-02-06 16:45:20 +02:00
InitOutput.c vfb: use calloc() instead of malloc() 2025-06-12 16:49:54 +02:00
meson.build mi: List extensions in usage message 2021-01-29 12:52:09 +00:00