sip: use g_return_if_fail and friends only for public functions

This commit is contained in:
Evangelos Ribeiro Tzaras
2021-03-09 23:58:51 +01:00
parent 685aa1950e
commit cadaa6a3e0
4 changed files with 26 additions and 18 deletions

View File

@@ -233,7 +233,7 @@ calls_sip_provider_init_sofia (CallsSipProvider *self,
{
GSource *gsource;
g_return_val_if_fail (CALLS_IS_SIP_PROVIDER (self), FALSE);
g_assert (CALLS_SIP_PROVIDER (self));
self->ctx = g_new0 (CallsSipContext, 1);
if (self->ctx == NULL) {