From 261d49b48919055218d32b0c5c8016d628680f1e Mon Sep 17 00:00:00 2001 From: Andrew D'Angelo Date: Sun, 20 Aug 2023 08:06:23 -0500 Subject: [PATCH] Check framebuffer function struct --- src/drm_iface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drm_iface.c b/src/drm_iface.c index 518d2e5..19a9226 100644 --- a/src/drm_iface.c +++ b/src/drm_iface.c @@ -623,7 +623,8 @@ int drm_set_indicator(size_t idx, char c) { struct drm_clip_rect dirty_rect; - if (!g_panel || !g_panel->fb || !g_panel->fb->funcs->dirty) { + if (!g_panel || !g_panel->fb || !g_panel->fb->funcs + || !g_panel->fb->funcs->dirty) { return -1; }