mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 05:18:31 +00:00
avoid recomputing hash
This commit is contained in:
1 parent
f1d7721710
commit
7e9c350532
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user