From c7e99db585010d3b7a4dbc4c2b7c354b2fdef0f3 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Thu, 25 Mar 2010 18:32:04 -0300 Subject: [PATCH] obexd: ebook minor coding style fixes --- obexd/plugins/phonebook-ebook.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/obexd/plugins/phonebook-ebook.c b/obexd/plugins/phonebook-ebook.c index 4b933f949..0a47f72e2 100644 --- a/obexd/plugins/phonebook-ebook.c +++ b/obexd/plugins/phonebook-ebook.c @@ -128,7 +128,6 @@ static gchar *evcard_to_string(EVCard *evcard, guint format, guint64 filter) g_object_unref(evcard2); return vcard; - } static void ebookpull_cb(EBook *book, EBookStatus status, GList *contacts, @@ -170,14 +169,14 @@ static gchar *evcard_name_attribute_to_string(EVCard *evcard) return NULL; for (l = e_vcard_attribute_get_values(attrib); l; l = l->next) { - if (!name) - name = g_string_new(l->data); - else { - const gchar *value = l->data; + const gchar *value = l->data; - if (!strlen(value)) - continue; + if (!strlen(value)) + continue; + if (!name) + name = g_string_new(value); + else { name = g_string_append(name, ";"); name = g_string_append(name, l->data); } -- 2.47.3