mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Reported in #1817: xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:848:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘size’ Move the use of the pointer inside the body of the if statement that allocates the pointer so the static analyzer doesn't have to understand the various conditions are effectively equivalent, despite the different ways they are expressed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2165>