Diff between 93f6f455d19b74a69d63b7d2bbbc1a2a009d4216 and 5f73860fe81762e53c48db5c0a61bcb0a519ec02

Changed Files

File Additions Deletions Status
obexd/plugins/vcard.c +5 -0 modified

Full Patch

diff --git a/obexd/plugins/vcard.c b/obexd/plugins/vcard.c
index f1d9edc..c0a33cb 100644
--- a/obexd/plugins/vcard.c
+++ b/obexd/plugins/vcard.c
@@ -392,6 +392,11 @@ static void vcard_printf_fullname(GString *vcards, uint8_t format,
 {
 	char field[LEN_MAX];
 
+	if (!text || strlen(text) == 0) {
+		vcard_printf(vcards, "FN:");
+		return;
+	}
+
 	if (select_qp_encoding(format, text, NULL)) {
 		vcard_qp_print_encoded(vcards, "FN", text, NULL);
 		return;