From 32c226da910fbe6c202707ed25f41c90082d17a8 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 24 Feb 2015 21:31:35 +0100 Subject: [PATCH] avoid crash in a failed test --- tester/dtmf_tester.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tester/dtmf_tester.c b/tester/dtmf_tester.c index 1c80c21c6..c4c2e3bfe 100644 --- a/tester/dtmf_tester.c +++ b/tester/dtmf_tester.c @@ -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;