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:
William King authored and Michael Jerris committed 2015-05-28 12:47:21 -05:00
1 parent 4f468b14e9
commit caee0a3119
1 file changed
+1 -1
+1 -1
View File
@@ -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);