avoid possible division by 0. Closes CID1295447

This commit is contained in:
Boris Faure 2015-04-25 14:56:53 +02:00
parent 79761712c6
commit d2e39f818e
1 changed files with 3 additions and 0 deletions

View File

@ -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)
{