diff options
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-destination.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 57c1547f01..a96468c652 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,11 @@ 2001-07-12 Jeffrey Stedfast <fejj@ximian.com> + * backend/ebook/e-destination.c (e_destination_xml_decode): + Oops. I introduced my own bug, accidently set `email' to a + g_free'd pointer - eek! + +2001-07-12 Jeffrey Stedfast <fejj@ximian.com> + * backend/ebook/e-destination.c (e_destination_importv): Optimized the same way I optimized g_strsplit. If you use a GPtrArray instead of a linked list, you save yourself from having to iterate diff --git a/addressbook/backend/ebook/e-destination.c b/addressbook/backend/ebook/e-destination.c index 2e1f6c802e..7b88ea4fb4 100644 --- a/addressbook/backend/ebook/e-destination.c +++ b/addressbook/backend/ebook/e-destination.c @@ -724,7 +724,7 @@ e_destination_xml_decode (EDestination *dest, xmlNodePtr node) } else if (!is_list && !strcmp (node->name, "email")) { tmp = xmlNodeGetContent (node); g_free (email); - email = g_strdup (email); + email = g_strdup (tmp); xmlFree (tmp); } else if (is_list && !strcmp (node->name, "list_entry")) { xmlNodePtr subnode = node->xmlChildrenNode; |