1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-30 15:49:31 +00:00

call: g_return_if_fail: type check calls_call_get_contact ()

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-04-05 04:51:44 +02:00
parent 26c8bad9cc
commit f84d3c0adf

View file

@ -396,8 +396,12 @@ calls_call_tone_stop (CallsCall *self,
CallsBestMatch *
calls_call_get_contact (CallsCall *self)
{
CallsContactsProvider *contacts_provider =
calls_manager_get_contacts_provider (calls_manager_get_default ());
CallsContactsProvider *contacts_provider;
g_return_val_if_fail (CALLS_IS_CALL (self), NULL);
contacts_provider =
calls_manager_get_contacts_provider (calls_manager_get_default ());
return calls_contacts_provider_lookup_phone_number (contacts_provider,
calls_call_get_number (self));