FS-11696 [mod_amqp] fix format_fields initialization

This commit is contained in:
Razvan Crainea 2019-03-08 18:33:23 +02:00
parent 2e319c41c0
commit 6f15b03295
1 changed files with 1 additions and 1 deletions

View File

@ -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;