mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-14 11:06:36 +00:00
avoid recomputing hash
This commit is contained in:
parent
f1d7721710
commit
7e9c350532
@ -211,7 +211,7 @@ switch_hashtable_remove(switch_hashtable_t *h, void *k)
|
|||||||
unsigned int hashvalue, index;
|
unsigned int hashvalue, index;
|
||||||
|
|
||||||
hashvalue = hash(h,k);
|
hashvalue = hash(h,k);
|
||||||
index = indexFor(h->tablelength,hash(h,k));
|
index = indexFor(h->tablelength,hashvalue);
|
||||||
pE = &(h->table[index]);
|
pE = &(h->table[index]);
|
||||||
e = *pE;
|
e = *pE;
|
||||||
while (NULL != e) {
|
while (NULL != e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user