avoid crash in a failed test

This commit is contained in:
Simon Morlat 2015-02-24 21:31:35 +01:00
parent 6057309bef
commit 32c226da91

View file

@ -46,6 +46,10 @@ void send_dtmf_base(bool_t use_rfc2833, bool_t use_sipinfo, char dtmf, char* dtm
CU_ASSERT_TRUE(call(pauline,marie));
marie_call = linphone_core_get_current_call(marie->lc);
CU_ASSERT_PTR_NOT_NULL(marie_call);
if (!marie_call) return;
if (dtmf != '\0') {
dtmf_count_prev = pauline->stat.dtmf_count;