mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 06:48:33 +00:00
fix windows build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11624 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
5d0d61c7ff
commit
6cec4cf73c
1 file changed
+1
@@ -874,6 +874,7 @@ SWITCH_STANDARD_APP(limit_hash_function)
|
|||||||
if (!(item = (limit_hash_item_t*)switch_core_hash_find(globals.limit_hash, hashkey))) {
|
if (!(item = (limit_hash_item_t*)switch_core_hash_find(globals.limit_hash, hashkey))) {
|
||||||
/* No, create an empty structure and add it, then continue like as if it existed */
|
/* No, create an empty structure and add it, then continue like as if it existed */
|
||||||
item = (limit_hash_item_t*)malloc(sizeof(limit_hash_item_t));
|
item = (limit_hash_item_t*)malloc(sizeof(limit_hash_item_t));
|
||||||
|
switch_assert(item);
|
||||||
memset(item, 0, sizeof(limit_hash_item_t));
|
memset(item, 0, sizeof(limit_hash_item_t));
|
||||||
switch_core_hash_insert(globals.limit_hash, hashkey, item);
|
switch_core_hash_insert(globals.limit_hash, hashkey, item);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user