aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-12-10 02:21:16 +0800
committerChris Lahey <clahey@src.gnome.org>2000-12-10 02:21:16 +0800
commit3ec0323ff6027be46f6897b439ab4084b45666f0 (patch)
tree87e07ca98030453be44cfb9853c56ed9b9972a03 /addressbook/backend
parentf34a7f6b0f6146bbd365d8d5ffe1b3631427ecac (diff)
downloadgsoc2013-evolution-3ec0323ff6027be46f6897b439ab4084b45666f0.tar
gsoc2013-evolution-3ec0323ff6027be46f6897b439ab4084b45666f0.tar.gz
gsoc2013-evolution-3ec0323ff6027be46f6897b439ab4084b45666f0.tar.bz2
gsoc2013-evolution-3ec0323ff6027be46f6897b439ab4084b45666f0.tar.lz
gsoc2013-evolution-3ec0323ff6027be46f6897b439ab4084b45666f0.tar.xz
gsoc2013-evolution-3ec0323ff6027be46f6897b439ab4084b45666f0.tar.zst
gsoc2013-evolution-3ec0323ff6027be46f6897b439ab4084b45666f0.zip
When setting the "name" argument, copy the incoming name. This fixes a
2000-12-09 Christopher James Lahey <clahey@helixcode.com> * backend/ebook/e-card.c (e_card_set_arg): When setting the "name" argument, copy the incoming name. This fixes a crash. svn path=/trunk/; revision=6887
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/ebook/e-card.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c
index ddbfb5453a..9f74b928fc 100644
--- a/addressbook/backend/ebook/e-card.c
+++ b/addressbook/backend/ebook/e-card.c
@@ -1440,7 +1440,7 @@ e_card_set_arg (GtkObject *object, GtkArg *arg, guint arg_id)
case ARG_NAME:
if ( card->name )
e_card_name_free(card->name);
- card->name = GTK_VALUE_POINTER(*arg);
+ card->name = e_card_name_copy(GTK_VALUE_POINTER(*arg));
break;
case ARG_CATEGORIES:
if (card->categories)