discomfitor pushed a commit to branch enlightenment-0.22.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=5347935700586f05a0a5558cfbf47c13c4212c6c

commit 5347935700586f05a0a5558cfbf47c13c4212c6c
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Wed Jul 18 02:19:12 2018 +0900

    e randr - fix crash when no zones found
---
 src/bin/e_randr2.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_randr2.c b/src/bin/e_randr2.c
index fc0375a8c..1f1f490a7 100644
--- a/src/bin/e_randr2.c
+++ b/src/bin/e_randr2.c
@@ -432,7 +432,8 @@ _config_update(E_Randr2 *r, E_Config_Randr2 *cfg, Eina_Bool 
update_only)
                     {
                        /* find right-most screen */
                        E_Zone *zone = eina_list_last_data_get(e_comp->zones);
-                       eina_stringshare_replace(&cs->rel_to, zone->randr2_id);
+                       if (zone)
+                         eina_stringshare_replace(&cs->rel_to, 
zone->randr2_id);
                     }
                   cs->rel_align = 0;
                }

-- 


Reply via email to