Diff between 3a1e6b3e8dc13264650e4506c7db77f2d196bcf7 and 99be1da31c3ea7c4bd01d100d516e5aa7879483f

Changed Files

File Additions Deletions Status
obexd/client/pbap.c +2 -3 modified

Full Patch

diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c
index 0436715..dbc12d0 100644
--- a/obexd/client/pbap.c
+++ b/obexd/client/pbap.c
@@ -153,7 +153,7 @@ static void listing_element(GMarkupParseContext *ctxt,
 	gchar **key;
 	const gchar *handle = NULL, *vcardname = NULL;
 
-	if (!g_ascii_strcasecmp(element, "card"))
+	if (g_str_equal(element, "card") != TRUE)
 		return;
 
 	for (key = (gchar **) names; *key; key++, values++) {
@@ -770,8 +770,7 @@ static DBusMessage *pbap_search(DBusConnection *connection,
 
 	if (!field || g_str_equal(field, ""))
 		attrib = ATTRIB_NAME;
-
-	if (!g_ascii_strcasecmp(field, "name"))
+	else if (!g_ascii_strcasecmp(field, "name"))
 		attrib = ATTRIB_NAME;
 	else if (!g_ascii_strcasecmp(field, "number"))
 		attrib = ATTRIB_NUMBER;