1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-16 05:15:36 +00:00

manager: Use STR_IS_NULL_OR_EMPTY macro

This commit is contained in:
Evangelos Ribeiro Tzaras 2023-01-28 21:14:12 +01:00
parent 7809ec2349
commit fee8f8ba9f

View file

@ -1072,7 +1072,7 @@ calls_manager_get_origin_by_id (CallsManager *self,
g_return_val_if_fail (CALLS_IS_MANAGER (self), NULL); g_return_val_if_fail (CALLS_IS_MANAGER (self), NULL);
/* TODO Turn this into a critical once https://gitlab.gnome.org/GNOME/calls/-/merge_requests/505 is in */ /* TODO Turn this into a critical once https://gitlab.gnome.org/GNOME/calls/-/merge_requests/505 is in */
if (origin_id && *origin_id) if (STR_IS_NULL_OR_EMPTY (origin_id))
return NULL; return NULL;
n_origins = g_list_model_get_n_items (G_LIST_MODEL (self->origins)); n_origins = g_list_model_get_n_items (G_LIST_MODEL (self->origins));