Skip to contentSkip to conversation

Fix crash after fetching single owner vCard

PATCH In review Rafal Michalski 2 participants 2 messages Jan 12, 2011 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix crash after fetching single owner vCard

This patch makes that crash is avoided in case of fetching single owner vCard (0.vcf) from phonebook. Crash was caused because previous modifications of other queries wasn't included in query called CONTACTS_OTHER_QUERY_FROM_URI.

---
 plugins/phonebook-tracker.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
plugins/phonebook-tracker.c +3 -3
index 237fb33..311babd 100644
@@ -757,10 +757,10 @@
 "ORDER BY ?_key tracker:id(<%s>)"
 
 #define CONTACTS_OTHER_QUERY_FROM_URI					\
-	"SELECT \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" "	\
-	"fn:concat(\"TYPE_OTHER\", \"\31\", nco:phoneNumber(?t)) \"\" "	\
+	"SELECT fn:concat(\"TYPE_OTHER\", \"\31\", nco:phoneNumber(?t))"\
+	"\"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" "			\
 	"\"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" "		\
-	" \"NOTACALL\" \"false\" \"false\" <%s> "	\
+	" \"NOTACALL\" \"false\" \"false\" <%s> "			\
 	"WHERE { "							\
 		"<%s> a nco:Contact . "					\
 		"OPTIONAL { <%s> nco:hasPhoneNumber ?t . } "		\
Signature · 1 line
1.6.3.3
#1 lore raw

Hi Rafal,

Quoted 7 lines · Rafal Michalski

This patch makes that crash is avoided in case of fetching single owner vCard (0.vcf) from phonebook. Crash was caused because previous modifications of other queries wasn't included in query called CONTACTS_OTHER_QUERY_FROM_URI.

---
 plugins/phonebook-tracker.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Thanks. The patch has been pushed upstream.

Johan