summaryrefslogtreecommitdiff
path: root/obexd
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-06-07 19:31:14 -0300
committerMarcel Holtmann <marcel@holtmann.org>2012-12-04 22:48:19 +0100
commit0d2b70119e3bb083d29abf813365bc9b9a528ce6 (patch)
tree6a8cbcefab3de9aa5363142371e4b4c8c8bf61b5 /obexd
parent7ed412682361b89e734d04c9f9ba56f4420e81f3 (diff)
downloadbluez-0d2b70119e3bb083d29abf813365bc9b9a528ce6.tar.gz
obexd: Fix not always including the TEL header
The TEL header should be always included.
Diffstat (limited to 'obexd')
-rw-r--r--obexd/plugins/vcard.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/obexd/plugins/vcard.c b/obexd/plugins/vcard.c
index 9d7e6eab2..4a128edb0 100644
--- a/obexd/plugins/vcard.c
+++ b/obexd/plugins/vcard.c
@@ -155,8 +155,11 @@ static void vcard_printf_number(GString *vcards, uint8_t format,
char *pref = "", *intl = "", *category_string = "";
char buf[128];
- if (!number || !strlen(number) || !type)
+ /* TEL is a mandatory field, include even if empty */
+ if (!number || !strlen(number) || !type) {
+ vcard_printf(vcards, "TEL:");
return;
+ }
switch (category) {
case TEL_TYPE_HOME: