diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 309f47b260..3a72d8bf6a 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -1303,10 +1303,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess for (i = 0; i < and_argc; i++) { char *vdata; - end = NULL; - chan_type = peer_names[i]; const char *current_variable; char variable_buffer[512] = ""; + end = NULL; + chan_type = peer_names[i]; while (chan_type && *chan_type && *chan_type == ' ') { chan_type++;