Diff between 7ed412682361b89e734d04c9f9ba56f4420e81f3 and 0d2b70119e3bb083d29abf813365bc9b9a528ce6

Changed Files

File Additions Deletions Status
obexd/plugins/vcard.c +4 -1 modified

Full Patch

diff --git a/obexd/plugins/vcard.c b/obexd/plugins/vcard.c
index 9d7e6ea..4a128ed 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: