From 22635d418e4d56d4d85cbc086f3feffdba167a87 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Fri, 7 Apr 2023 12:21:35 +0200 Subject: [PATCH] account-row: Guard calls_account_row_new() against invalid provider --- src/calls-account-row.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calls-account-row.c b/src/calls-account-row.c index a2709bd..ef1a1de 100644 --- a/src/calls-account-row.c +++ b/src/calls-account-row.c @@ -217,6 +217,7 @@ calls_account_row_new (CallsAccountProvider *provider, CallsAccount *account) { 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, "provider", provider,