billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=00f08812be8ab9b5b0bc6cf4ed9deebc0c60647b

commit 00f08812be8ab9b5b0bc6cf4ed9deebc0c60647b
Author: Boris Faure <[email protected]>
Date:   Thu Mar 19 09:27:57 2020 +0100

    win: avoid div by 0. CID1421876
---
 src/bin/win.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/win.c b/src/bin/win.c
index 654bb22..5e92190 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -3011,6 +3011,8 @@ _term_on_horizontal_drag(void *data,
 
    tabs = (Tabs*) tc_parent;
    n = eina_list_count(tabs->tabs);
+   if (n <= 1)
+     return;
 
    tab_item = tabs->current;
 

-- 


Reply via email to