From 9b49b0bc4ffd417e5b31126a99da49f78c6f0fc0 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Sat, 21 Jan 2023 16:47:01 +0100 Subject: [PATCH] contacts-provider: Use STR_IS_NULL_OR_EMPTY macro --- src/calls-contacts-provider.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calls-contacts-provider.c b/src/calls-contacts-provider.c index 687c1c5..24b9da5 100644 --- a/src/calls-contacts-provider.c +++ b/src/calls-contacts-provider.c @@ -30,6 +30,7 @@ #include "calls-contacts-provider.h" #include "calls-best-match.h" #include "calls-settings.h" +#include "util.h" #include #include @@ -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);