notifier: Fix logic error
After introducing the STR_IS_NULL_OR_EMPTY macro the rewrite of the logic was
inverted.
Fixes d3677ad5d1
This commit is contained in:
@@ -68,8 +68,8 @@ notify (CallsNotifier *self, CuiCall *call)
|
|||||||
name = cui_call_get_display_name (call);
|
name = cui_call_get_display_name (call);
|
||||||
id = cui_call_get_id (call);
|
id = cui_call_get_id (call);
|
||||||
|
|
||||||
got_id = STR_IS_NULL_OR_EMPTY (id);
|
got_id = !STR_IS_NULL_OR_EMPTY (id);
|
||||||
got_contact = STR_IS_NULL_OR_EMPTY (name);
|
got_contact = !STR_IS_NULL_OR_EMPTY (name);
|
||||||
|
|
||||||
if (got_contact)
|
if (got_contact)
|
||||||
/* %s is a name here */
|
/* %s is a name here */
|
||||||
|
|||||||
Reference in New Issue
Block a user