From 9d756ecc777ca2158ca384bd28fddfc064d6e91a Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Fri, 27 May 2011 12:24:48 -0400 Subject: [PATCH] FS-3320 --resolve --- libs/esl/src/esl_event.c | 3 +-- src/switch_event.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/esl/src/esl_event.c b/libs/esl/src/esl_event.c index 8280f3e892..28723928e3 100644 --- a/libs/esl/src/esl_event.c +++ b/libs/esl/src/esl_event.c @@ -365,7 +365,6 @@ ESL_DECLARE(int) esl_event_add_array(esl_event_t *event, const char *var, const { char *data; char **array; - int idx; int max = 0; int len; 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); 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++) { esl_event_add_header_string(event, ESL_STACK_PUSH, var, array[i]); diff --git a/src/switch_event.c b/src/switch_event.c index 79881e69ae..f362bb112b 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -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]);