This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch devs/devilhorns/apos
in repository efl.

View the commit online.

commit 2756c027e6c561114b416b3828351894fe141045
Author: Christopher Michael <[email protected]>
AuthorDate: Thu Sep 4 08:03:03 2025 -0500

    ecore_drm2: Fixup ecore_drm2_display_info_get to be more robust in
    error checking
---
 src/lib/ecore_drm2/ecore_drm2_displays.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_drm2/ecore_drm2_displays.c b/src/lib/ecore_drm2/ecore_drm2_displays.c
index 14c4cdb39f..641a140d05 100644
--- a/src/lib/ecore_drm2/ecore_drm2_displays.c
+++ b/src/lib/ecore_drm2/ecore_drm2_displays.c
@@ -1213,10 +1213,12 @@ ecore_drm2_display_info_get(Ecore_Drm2_Display *disp, int *x, int *y, int *w, in
    if (refresh) *refresh = 0;
 
    EINA_SAFETY_ON_NULL_RETURN(disp);
-   EINA_SAFETY_ON_TRUE_RETURN(!disp->state.current->mode);
 
    cstate = disp->state.current;
 
+   EINA_SAFETY_ON_NULL_RETURN(cstate);
+   EINA_SAFETY_ON_TRUE_RETURN(!cstate->mode);
+
    if (x) *x = cstate->x;
    if (y) *y = cstate->y;
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to