xserver/hw/xwin/glx
Enrico Weigelt, metux IT consult 5377ee4d81 xwin: 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:50:05 +02:00
..
.gitignore
dri_helpers.c
dri_helpers.h
gen_gl_wrappers.py
glshim.c
glthunk.c
glwindows.h
indirect.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
indirect.h xwin: glx: drop glxWinUnrealizeWindow() 2025-06-12 16:42:20 +02:00
meson.build
wgl_ext_api.c
wgl_ext_api.h
winpriv.c
winpriv.h