[calls] notifier: Fix logic error
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] notifier: Fix logic error
- Date: Fri, 25 Feb 2022 14:40:13 +0000 (UTC)
commit 094d402d9b753f4e04e81317f86327efd6c2396f
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Fri Feb 25 14:25:59 2022 +0100
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 67510bac..386f5386 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]