From 99be1da31c3ea7c4bd01d100d516e5aa7879483f Mon Sep 17 00:00:00 2001 From: Raymond Liu Date: Thu, 18 Dec 2008 13:43:14 +0800 Subject: [PATCH] obexd: Minor bug fix on Pull Search Function --- obexd/client/pbap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c index 043671514..dbc12d0d2 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; -- 2.47.3