CID: 1294434 fixing a sizeof statement that was working for so long because on 64bit boxes the pointer size would be 64bits and the uint8_t was expecting at least 32
This commit is contained in:
parent
4f468b14e9
commit
caee0a3119
|
@ -253,7 +253,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_inthash_insert(switch_inthash_t *has
|
|||
{
|
||||
uint32_t *k = NULL;
|
||||
|
||||
switch_zmalloc(k, sizeof(k));
|
||||
switch_zmalloc(k, sizeof(*k));
|
||||
*k = key;
|
||||
switch_hashtable_insert_destructor(hash, k, (void *)data, HASHTABLE_FLAG_FREE_KEY | HASHTABLE_DUP_CHECK, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue