benchmarks/eina: fix possible div by zero in ecore_hash

Summary: CID 1400768

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10397
This commit is contained in:
Mike Blumenkrantz 2019-10-18 13:29:07 -04:00
parent 36c5f1026f
commit d417868c90
1 changed files with 1 additions and 0 deletions

View File

@ -416,6 +416,7 @@ ecore_hash_dump_stats(Ecore_Hash *hash)
unsigned int i;
double variance, sum_n_2 = 0, sum_n = 0;
if (!hash->size) return;
for (i = 0; i < ecore_prime_table[hash->size]; i++)
{
if (hash->buckets[i])