diff --git a/src/switch_ivr.c b/src/switch_ivr.c index e5f05256aa..220348a843 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -1659,7 +1659,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess switch_core_session_t *peer_session, *peer_sessions[MAX_PEERS]; switch_caller_profile_t *caller_profiles[MAX_PEERS], *caller_caller_profile; char *chan_type = NULL, *chan_data; - switch_channel_t *peer_channel = NULL, *peer_channels[MAX_PEERS]; + switch_channel_t *peer_channel = NULL, *peer_channels[MAX_PEERS] = {0}; time_t start; switch_frame_t *read_frame = NULL; switch_status_t status = SWITCH_STATUS_SUCCESS;