mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-01 19:20:05 +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];
|
char *format_fields[MAX_ROUTING_KEY_FORMAT_FIELDS+1];
|
||||||
int format_fields_size = 0;
|
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) {
|
if (switch_core_new_memory_pool(&pool) != SWITCH_STATUS_SUCCESS) {
|
||||||
goto err;
|
goto err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user