xserver/hw/xwin/winclipboard
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
..
debug.c xwin: winclipboard: fix missing prototypes / missing include 2024-03-03 23:02:54 +00:00
internal.h hw/xwin: Consistently use BOOL type from Xmd.h 2020-04-15 14:13:58 +00:00
meson.build meson: Fix build of xwinclip tool when xcb is installed in non-default location 2021-11-04 13:03:25 +00:00
textconv.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
thread.c hw/xwin: Consistently use BOOL type from Xmd.h 2020-04-15 14:13:58 +00:00
winclipboard.h hw/xwin: Consistently use BOOL type from Xmd.h 2020-04-15 14:13:58 +00:00
wndproc.c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
xevents.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
xwinclip.c hw/xwin: xcbify clipboard integration 2020-04-15 14:13:58 +00:00
xwinclip.man man pages: use .BR to mark up man page references 2025-03-29 13:36:54 -07:00