aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-04-26 11:45:44 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-04-30 00:40:24 +0800
commit14be589bba72db8a649a88f34234bf8af9170de2 (patch)
tree9d95948a44154d4ca03eac92f8eb4d6fef9693e3 /addressbook/gui
parent41848c19b37ff09e1c2c217b052b2b5b80bf9741 (diff)
downloadgsoc2013-evolution-14be589bba72db8a649a88f34234bf8af9170de2.tar
gsoc2013-evolution-14be589bba72db8a649a88f34234bf8af9170de2.tar.gz
gsoc2013-evolution-14be589bba72db8a649a88f34234bf8af9170de2.tar.bz2
gsoc2013-evolution-14be589bba72db8a649a88f34234bf8af9170de2.tar.lz
gsoc2013-evolution-14be589bba72db8a649a88f34234bf8af9170de2.tar.xz
gsoc2013-evolution-14be589bba72db8a649a88f34234bf8af9170de2.tar.zst
gsoc2013-evolution-14be589bba72db8a649a88f34234bf8af9170de2.zip
Fix a potential crasher in e_contact_quick_add_email().
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/contact-editor/e-contact-quick-add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c
index d10ceeac6f..6a8a5fd19d 100644
--- a/addressbook/gui/contact-editor/e-contact-quick-add.c
+++ b/addressbook/gui/contact-editor/e-contact-quick-add.c
@@ -606,7 +606,7 @@ e_contact_quick_add_email (const gchar *email, EContactQuickAddCallback cb, gpoi
name = g_strndup (email, lt - email);
addr = g_strndup (lt + 1, gt - lt - 1);
} else {
- addr = email;
+ addr = g_strdup (email);
}
e_contact_quick_add (name, addr, cb, closure);