diff options
author | Boris Faure <billiob@gmail.com> | 2015-04-25 14:56:53 +0200 |
---|---|---|
committer | Boris Faure <billiob@gmail.com> | 2015-04-25 14:56:53 +0200 |
commit | d2e39f818e4a886cd2509a48bd0d91fb7a8ffc78 (patch) | |
tree | 337ed3f83466831a3bf060c235980de471e376ad /src | |
parent | 79761712c6cab61250c0271f5439b37fedb43864 (diff) |
avoid possible division by 0. Closes CID1295447
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/win.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
2363 | int i = 1; | 2363 | int i = 1; |
2364 | int n = eina_list_count(tabs->tabs); | 2364 | int n = eina_list_count(tabs->tabs); |
2365 | 2365 | ||
2366 | if (n <= 0) | ||
2367 | return; | ||
2368 | |||
2366 | buf[0] = '\0'; | 2369 | buf[0] = '\0'; |
2367 | EINA_LIST_FOREACH(tabs->tabs, l, tab_item) | 2370 | EINA_LIST_FOREACH(tabs->tabs, l, tab_item) |
2368 | { | 2371 | { |