mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-06 02:22:56 +00:00
FS-3320 --resolve
This commit is contained in:
parent
0ac088e32c
commit
9d756ecc77
@ -365,7 +365,6 @@ ESL_DECLARE(int) esl_event_add_array(esl_event_t *event, const char *var, const
|
|||||||
{
|
{
|
||||||
char *data;
|
char *data;
|
||||||
char **array;
|
char **array;
|
||||||
int idx;
|
|
||||||
int max = 0;
|
int max = 0;
|
||||||
int len;
|
int len;
|
||||||
const char *p;
|
const char *p;
|
||||||
@ -395,7 +394,7 @@ ESL_DECLARE(int) esl_event_add_array(esl_event_t *event, const char *var, const
|
|||||||
esl_assert(array);
|
esl_assert(array);
|
||||||
memset(array, 0, len);
|
memset(array, 0, len);
|
||||||
|
|
||||||
idx = esl_separate_string_string(data, "|:", array, max);
|
esl_separate_string_string(data, "|:", array, max);
|
||||||
|
|
||||||
for(i = 0; i < max; i++) {
|
for(i = 0; i < max; i++) {
|
||||||
esl_event_add_header_string(event, ESL_STACK_PUSH, var, array[i]);
|
esl_event_add_header_string(event, ESL_STACK_PUSH, var, array[i]);
|
||||||
|
@ -856,7 +856,6 @@ SWITCH_DECLARE(int) switch_event_add_array(switch_event_t *event, const char *va
|
|||||||
{
|
{
|
||||||
char *data;
|
char *data;
|
||||||
char **array;
|
char **array;
|
||||||
int idx;
|
|
||||||
int max = 0;
|
int max = 0;
|
||||||
int len;
|
int len;
|
||||||
const char *p;
|
const char *p;
|
||||||
@ -887,7 +886,7 @@ SWITCH_DECLARE(int) switch_event_add_array(switch_event_t *event, const char *va
|
|||||||
array = malloc(len);
|
array = malloc(len);
|
||||||
memset(array, 0, len);
|
memset(array, 0, len);
|
||||||
|
|
||||||
idx = switch_separate_string_string(data, "|:", array, max);
|
switch_separate_string_string(data, "|:", array, max);
|
||||||
|
|
||||||
for(i = 0; i < max; i++) {
|
for(i = 0; i < max; i++) {
|
||||||
switch_event_add_header_string(event, SWITCH_STACK_PUSH, var, array[i]);
|
switch_event_add_header_string(event, SWITCH_STACK_PUSH, var, array[i]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user