fix missing null dmachine check

This commit is contained in:
Anthony Minessale 2011-10-04 14:37:48 -05:00
parent b0b5fb16dc
commit 65836742e8
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ SWITCH_DECLARE(void) switch_core_session_set_dmachine(switch_core_session_t *ses
int i = (int) target;
if (i == 0 || i == 1) {
if (dmachine) {
switch_ivr_dmachine_set_target(dmachine, target);
}
session->dmachine[i] = dmachine;
}
}