modesetting/present.c: Initialze '*reason' in the check_flip2 proc

Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
stefan11111
2026-01-27 01:50:47 +02:00
committed by Enrico Weigelt
parent dba40b75c4
commit 1762a02331

View File

@@ -323,6 +323,9 @@ ms_present_check_flip(RRCrtcPtr crtc,
modesettingPtr ms = modesettingPTR(scrn);
Bool async_flip = !sync_flip;
if (reason)
*reason = PRESENT_FLIP_REASON_UNKNOWN;
if (ms->drmmode.sprites_visible > 0)
goto no_flip;