avoid recomputing hash

This commit is contained in:
Anthony Minessale 2014-04-11 03:08:27 +05:00
parent f1d7721710
commit 7e9c350532

View File

@ -211,7 +211,7 @@ switch_hashtable_remove(switch_hashtable_t *h, void *k)
unsigned int hashvalue, index;
hashvalue = hash(h,k);
index = indexFor(h->tablelength,hash(h,k));
index = indexFor(h->tablelength,hashvalue);
pE = &(h->table[index]);
e = *pE;
while (NULL != e) {