billiob pushed a commit to branch master.

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

commit d2e39f818e4a886cd2509a48bd0d91fb7a8ffc78
Author: Boris Faure <bill...@gmail.com>
Date:   Sat Apr 25 14:56:53 2015 +0200

    avoid possible division by 0. Closes CID1295447
---
 src/bin/win.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/win.c b/src/bin/win.c
index 5f4425f..3f02d75 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -2363,6 +2363,9 @@ _tabs_refresh(Tabs *tabs)
    int i = 1;
    int n = eina_list_count(tabs->tabs);
 
+   if (n <= 0)
+     return;
+
    buf[0] = '\0';
    EINA_LIST_FOREACH(tabs->tabs, l, tab_item)
      {

-- 


Reply via email to