efreet: Check if count != 0

CID 1039434
This commit is contained in:
Sebastian Dransfeld 2013-10-14 11:57:01 +02:00
parent 7f30306031
commit 6b18d7b80a
1 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,9 @@ dump(Efreet_Icon_Theme *theme)
free(keys);
start = ecore_time_get() - start;
avg = start / count;
avg = 0;
if (count > 0)
avg = start / count;
printf("read: %s - %u paths (time: %f) (avg %f)\n", theme->name.internal, count, start, avg);
eet_close(ef);
eet_clearcache();