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

git pushed a commit to branch master
in repository efl.

View the commit online.

commit be242d3670cc61ed232954145a314b23a1f481cc
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Sun Jul 28 12:19:17 2024 +0100

    ecore-x - fix check on connector type get when num values is 0
    
    @fix
---
 src/lib/ecore_x/ecore_x_randr.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore_x/ecore_x_randr.c b/src/lib/ecore_x/ecore_x_randr.c
index bd1ef23427..7c630c0fbe 100644
--- a/src/lib/ecore_x/ecore_x_randr.c
+++ b/src/lib/ecore_x/ecore_x_randr.c
@@ -3189,10 +3189,11 @@ ecore_x_randr_output_connector_type_get(Ecore_X_Window root EINA_UNUSED, Ecore_X
    /* try to get the output property from Xrandr */
    if ((info = XRRQueryOutputProperty(_ecore_x_disp, output, connector_type)))
      {
-        int ret = 0;
+        int ret = -1;
 
         /* convert the current value */
-        ret = (int)(val - info->values[0]);
+        if (info->num_values > 0)
+          ret = (int)(val - info->values[0]);
 
         /* printf("\tReturn Value: %d\n", ret); */
         /* printf("\t\tActual Name: %s\n",  */

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

Reply via email to