mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-19 01:34:13 +00:00
FS-3320 --resolve
This commit is contained in:
1 parent
0ac088e32c
commit
9d756ecc77
2 files changed
+2
-4
No files matched your search
+1
-2
@@ -856,7 +856,6 @@ SWITCH_DECLARE(int) switch_event_add_array(switch_event_t *event, const char *va
|
||||
{
|
||||
char *data;
|
||||
char **array;
|
||||
int idx;
|
||||
int max = 0;
|
||||
int len;
|
||||
const char *p;
|
||||
@@ -887,7 +886,7 @@ SWITCH_DECLARE(int) switch_event_add_array(switch_event_t *event, const char *va
|
||||
array = malloc(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++) {
|
||||
switch_event_add_header_string(event, SWITCH_STACK_PUSH, var, array[i]);
|
||||
|
||||
Reference in new issue
Block a user