Diff between 1e057ba2bb17f1a01ad33322cf61468c247d0b65 and a6b0b55b7c0790f18fe18971db938df79566ec2f

Changed Files

File Additions Deletions Status
obexd/plugins/phonebook-tracker.c +2 -7 modified

Full Patch

diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c
index 8fb618d..e383709 100644
--- a/obexd/plugins/phonebook-tracker.c
+++ b/obexd/plugins/phonebook-tracker.c
@@ -494,13 +494,8 @@ static void set_call_type(struct phonebook_contact *contact,
 		return;
 	}
 
-	sent = FALSE;
-	if (g_strcmp0(is_sent, "true") == 0)
-		sent = TRUE;
-
-	answered = FALSE;
-	if (g_strcmp0(is_answered, "true") == 0)
-		answered = TRUE;
+	sent = g_str_equal(is_sent, "true");
+	answered = g_str_equal(is_answered, "true");
 
 	if (sent == FALSE)
 		if (answered == FALSE)