[PATCH obexd 1/2] PBAP/Tracker: Fix wrong results field reference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The field passed for a phone number was actually a nickname field.
---
 plugins/phonebook-tracker.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index da82ff5..d358c9f 100644
--- a/plugins/phonebook-tracker.c
+++ b/plugins/phonebook-tracker.c
@@ -1409,10 +1409,10 @@ static int add_to_cache(const char **reply, int num_fields, void *user_data)
 	/* The owner vCard must have the 0 handle */
 	if (strcmp(reply[0], TRACKER_DEFAULT_CONTACT_ME) == 0)
 		data->entry_cb(reply[0], 0, formatted, "",
-						reply[6], data->user_data);
+						reply[7], data->user_data);
 	else
 		data->entry_cb(reply[0], PHONEBOOK_INVALID_HANDLE, formatted,
-					"", reply[6], data->user_data);
+					"", reply[7], data->user_data);
 
 	g_free(formatted);
 
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux