mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-10 13:55:32 +00:00
account-row: Guard calls_account_row_new() against invalid provider
This commit is contained in:
parent
f2ca24a6f1
commit
22635d418e
1 changed files with 1 additions and 0 deletions
|
@ -217,6 +217,7 @@ calls_account_row_new (CallsAccountProvider *provider,
|
||||||
CallsAccount *account)
|
CallsAccount *account)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (CALLS_IS_ACCOUNT (account), NULL);
|
g_return_val_if_fail (CALLS_IS_ACCOUNT (account), NULL);
|
||||||
|
g_return_val_if_fail (CALLS_IS_ACCOUNT_PROVIDER (provider), NULL);
|
||||||
|
|
||||||
return g_object_new (CALLS_TYPE_ACCOUNT_ROW,
|
return g_object_new (CALLS_TYPE_ACCOUNT_ROW,
|
||||||
"provider", provider,
|
"provider", provider,
|
||||||
|
|
Loading…
Reference in a new issue