1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-05 19:15:32 +00:00

contacts-provider: Use STR_IS_NULL_OR_EMPTY macro

This commit is contained in:
Evangelos Ribeiro Tzaras 2023-01-21 16:47:01 +01:00
parent b799605d01
commit 9b49b0bc4f

View file

@ -30,6 +30,7 @@
#include "calls-contacts-provider.h"
#include "calls-best-match.h"
#include "calls-settings.h"
#include "util.h"
#include <gee-0.8/gee.h>
#include <folks/folks.h>
@ -420,7 +421,7 @@ calls_contacts_provider_lookup_id (CallsContactsProvider *self,
g_return_val_if_fail (CALLS_IS_CONTACTS_PROVIDER (self), NULL);
if (!id || !*id)
if (STR_IS_NULL_OR_EMPTY (id))
return NULL;
best_match = g_hash_table_lookup (self->best_matches, id);