From 0d2b70119e3bb083d29abf813365bc9b9a528ce6 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Mon, 7 Jun 2010 19:31:14 -0300 Subject: [PATCH] obexd: Fix not always including the TEL header The TEL header should be always included. --- obexd/plugins/vcard.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- 2.47.3