fix seg in user_recurse_variables=false edge case

This commit is contained in:
Anthony Minessale 2010-07-06 10:25:58 -05:00
parent fb9d60fcdb
commit ccb9a4eb0d
1 changed files with 1 additions and 1 deletions

View File

@ -2781,7 +2781,7 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
if (session) {
channel = switch_core_session_get_channel(session);
if ((varval = switch_channel_get_variable(channel, SWITCH_CALL_TIMEOUT_VARIABLE))
|| (varval = switch_event_get_header(var_event, "leg_timeout"))) {
|| (var_event && (varval = switch_event_get_header(var_event, "leg_timeout")))) {
timelimit = atoi(varval);
}