GNOME Bugzilla – Bug 751044
addressbook: Treat an empty vCard attribute group name as NULL
Last modified: 2015-06-18 22:30:11 UTC
Trivial patch attached.
Created attachment 305388 [details] [review] addressbook: Treat an empty vCard attribute group name as NULL We do not want the following two calls to behave differently: e_vcard_attribute_new ("", "X-HELLO") e_vcard_attribute_new (NULL, "X-HELLO") Elsewhere in the vCard code, attribute group names are guaranteed to be NULL or non-empty strings, so we should follow that precedent here.
Review of attachment 305388 [details] [review]: Looks fine, please ocmmit to master and gnome-3-16. Thanks. ::: addressbook/libebook-contacts/e-vcard.c @@ +1544,3 @@ attr = g_slice_new0 (EVCardAttribute); + if (attr_group != NULL && *attr_group == '\0') can even be: (attr_group && !*attr_group), but that's only a matter of taste
Comment on attachment 305388 [details] [review] addressbook: Treat an empty vCard attribute group name as NULL Attachment 305388 [details] pushed as 513ac76 - addressbook: Treat an empty vCard attribute group name as NULL
Attachment 305388 [details] pushed to gnome-3-16 as e5cccea - addressbook: Treat an empty vCard attribute group name as NULL