video/out/drm_common: fix uninitialized var

Add a missing variable initialization. The variable is only conditionally set
later. Then there is a check for a NULL if no CTA block was found, but the
value is instead uninitialized memory. There would then be a segfault when the
pointer is de-referenced.
This commit is contained in:
Brad Barden authored and Dudemanguy committed 2026-01-11 18:30:03 -06:00
1 parent beddaec5ab
commit 39d7bbe2bf
1 file changed
+1 -1
+1 -1
View File
@@ -648,7 +648,7 @@ static void setup_edid(struct vo_drm_state *drm)
drm->chromaticity = di_edid_get_chromaticity_coords(edid);
const struct di_edid_cta *cta;
const struct di_edid_cta *cta = NULL;
const struct di_edid_ext *const *exts = di_edid_get_extensions(edid);
while (*exts && !(cta = di_edid_ext_get_cta(*exts++)));