From 094d402d9b753f4e04e81317f86327efd6c2396f Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Fri, 25 Feb 2022 14:25:59 +0100 Subject: [PATCH] notifier: Fix logic error After introducing the STR_IS_NULL_OR_EMPTY macro the rewrite of the logic was inverted. Fixes d3677ad5d10236731e61999cb6083f7911b30708 --- src/calls-notifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calls-notifier.c b/src/calls-notifier.c index 67510ba..386f538 100644 --- a/src/calls-notifier.c +++ b/src/calls-notifier.c @@ -68,8 +68,8 @@ notify (CallsNotifier *self, CuiCall *call) name = cui_call_get_display_name (call); id = cui_call_get_id (call); - got_id = STR_IS_NULL_OR_EMPTY (id); - got_contact = STR_IS_NULL_OR_EMPTY (name); + got_id = !STR_IS_NULL_OR_EMPTY (id); + got_contact = !STR_IS_NULL_OR_EMPTY (name); if (got_contact) /* %s is a name here */