mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 00:22:35 +00:00
Merge pull request #1689 in FS/freeswitch from ~RAZVANC/freeswitch:bugfix/FS-11696-fix-format_fields-init to master
* commit '6f15b032955299d3c38915e9e1a81078bf66743e': FS-11696 [mod_amqp] fix format_fields initialization
This commit is contained in:
commit
a5858c8b9f
@ -175,7 +175,7 @@ switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg)
|
||||
char *format_fields[MAX_ROUTING_KEY_FORMAT_FIELDS+1];
|
||||
int format_fields_size = 0;
|
||||
|
||||
memset(format_fields, 0, MAX_ROUTING_KEY_FORMAT_FIELDS + 1);
|
||||
memset(format_fields, 0, (MAX_ROUTING_KEY_FORMAT_FIELDS + 1) * sizeof(char *));
|
||||
|
||||
if (switch_core_new_memory_pool(&pool) != SWITCH_STATUS_SUCCESS) {
|
||||
goto err;
|
||||
|
Loading…
x
Reference in New Issue
Block a user