shithub: vcardfs

Download patch

ref: 9ee4eb9c230281c0b6dee6854279099e983e60c8
parent: 6768cde56821f44f25953be75bc9224fa7ef621a
author: sirjofri <sirjofri@sirjofri.de>
date: Tue Oct 22 06:37:26 EDT 2024

fixes empty group string

--- a/libvcard/vcard.c
+++ b/libvcard/vcard.c
@@ -162,8 +162,8 @@
 		ls = smprint(
 			"%s%s"            /* group string */
 			"%s%s:%s\r\n",    /* name, param, value */
-			(l->group ? l->group : ""),  /* group string */
-			(l->group ? "." : ""),       /* group dot */
+			(l->group && *l->group ? l->group : ""),  /* group string */
+			(l->group && *l->group ? "." : ""),       /* group dot */
 			upper, ps, l->value);
 		free(upper);
 		if (!ls) {