mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 12:25:31 +00:00
contacts-provider: Use STR_IS_NULL_OR_EMPTY macro
This commit is contained in:
parent
b799605d01
commit
9b49b0bc4f
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@
|
||||||
#include "calls-contacts-provider.h"
|
#include "calls-contacts-provider.h"
|
||||||
#include "calls-best-match.h"
|
#include "calls-best-match.h"
|
||||||
#include "calls-settings.h"
|
#include "calls-settings.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
#include <gee-0.8/gee.h>
|
#include <gee-0.8/gee.h>
|
||||||
#include <folks/folks.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);
|
g_return_val_if_fail (CALLS_IS_CONTACTS_PROVIDER (self), NULL);
|
||||||
|
|
||||||
if (!id || !*id)
|
if (STR_IS_NULL_OR_EMPTY (id))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
best_match = g_hash_table_lookup (self->best_matches, id);
|
best_match = g_hash_table_lookup (self->best_matches, id);
|
||||||
|
|
Loading…
Reference in a new issue