xserver/randr
Enrico Weigelt, metux IT consult d93d9af35a randr: skip payload assembly in rrGetScreenResources() no data to send
If there's no data to send, the whole reply payload can be skipped entirely.
This can also ease the whole code flow, and we don't need to rely on the
individual copy loops never trying to dereference a NULL pointer.
(what the analyzer can't proof). Also scoping several some variables that
are only used when there actually is data to send.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-13 17:19:24 +02:00
..
meson.build meson: hide C API if Xorg is disabled (like autotools) 2021-03-11 00:22:36 +00:00
randr.c randr: RRScreenInit(): drop unnecessary zero'ing 2025-02-24 20:30:26 +00:00
randrstr.h render: drop obsolete macros pict_f_transform and pict_f_vector 2024-03-03 22:54:16 +00:00
randrstr_priv.h randr: use explicit case statement instead of SProcRandrVector table 2025-02-24 20:30:26 +00:00
rrcrtc.c randr: fix RRGetCrtcTransform reply length, part 2 2025-02-27 12:18:20 +00:00
rrdispatch.c randr: use struct initializer for reply structs 2025-02-24 20:30:26 +00:00
rrinfo.c randr: use struct initializer for reply structs 2025-02-24 20:30:26 +00:00
rrlease.c randr: use struct initializer for reply structs 2025-02-24 20:30:26 +00:00
rrmode.c randr: use struct initializer for reply structs 2025-02-24 20:30:26 +00:00
rrmonitor.c randr: ProcRRGetMonitors(): collect reply payload in temporary buffer 2025-02-24 20:30:26 +00:00
rroutput.c randr: ProcRRGetOutputInfo() skip payload assembly when nothing to do 2025-05-13 17:18:18 +02:00
rrpointer.c dix: unexport GetSpritePosition() 2024-09-02 16:43:29 +00:00
rrproperty.c randr: refine allocation and copying of optional buffers 2025-05-13 17:17:53 +02:00
rrprovider.c randr: use struct initializer for reply structs 2025-02-24 20:30:26 +00:00
rrproviderproperty.c randr: simplify reply assembly in ProcRRListProviderProperties() 2025-05-13 17:19:18 +02:00
rrscreen.c randr: skip payload assembly in rrGetScreenResources() no data to send 2025-05-13 17:19:24 +02:00
rrsdispatch.c randr: use explicit case statement instead of SProcRandrVector table 2025-02-24 20:30:26 +00:00
rrtransform.c randr: Silence -Wshift-negative-value warnings 2015-10-19 11:51:52 -04:00
rrtransform.h render: drop obsolete macros pict_f_transform and pict_f_vector 2024-03-03 22:54:16 +00:00
rrxinerama.c randr: use struct initializer for reply structs 2025-02-24 20:30:26 +00:00