mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +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;
|
||||
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user