From 1793035683eded7e4573dbec6d22416d3a444a5e Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Wed, 18 Jan 2023 21:25:39 +0100 Subject: [PATCH] mm-call: Guard public API --- plugins/provider/mm/calls-mm-call.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/provider/mm/calls-mm-call.c b/plugins/provider/mm/calls-mm-call.c index bee5680..b129d23 100644 --- a/plugins/provider/mm/calls-mm-call.c +++ b/plugins/provider/mm/calls-mm-call.c @@ -413,6 +413,8 @@ calls_mm_call_new (MMCall *mm_call) const char * calls_mm_call_get_object_path (CallsMMCall *call) { + g_return_val_if_fail (CALLS_IS_MM_CALL (call), NULL); + return mm_call_get_path (call->mm_call); } @@ -420,5 +422,7 @@ calls_mm_call_get_object_path (CallsMMCall *call) const char * calls_mm_call_get_disconnect_reason (CallsMMCall *call) { + g_return_val_if_fail (CALLS_IS_MM_CALL (call), NULL); + return call->disconnect_reason; }