don't seg on no valid_terminators

This commit is contained in:
Michael Jerris 2012-07-02 11:55:49 -04:00
parent 7f41862156
commit 195949f25f
1 changed files with 1 additions and 1 deletions

View File

@ -1882,7 +1882,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_read(switch_core_session_t *session,
int term_required = 0; int term_required = 0;
if (*valid_terminators == '=') { if (valid_terminators && *valid_terminators == '=') {
term_required = 1; term_required = 1;
} }