mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-12 07:37:35 +00:00
call: g_return_if_fail: type check calls_call_get_contact ()
This commit is contained in:
parent
26c8bad9cc
commit
f84d3c0adf
1 changed files with 6 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue