From f0a09020d6824e86e13e1ee64c23a4a0a0200f40 Mon Sep 17 00:00:00 2001 From: Jeff Cai Date: Thu, 8 Apr 2010 10:18:37 +0800 Subject: Fix for bug #613564 If no <> in the email address, addr should be the full email address. --- addressbook/gui/contact-editor/e-contact-quick-add.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'addressbook') diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c index 36bd4ed948..d10ceeac6f 100644 --- a/addressbook/gui/contact-editor/e-contact-quick-add.c +++ b/addressbook/gui/contact-editor/e-contact-quick-add.c @@ -605,6 +605,8 @@ e_contact_quick_add_email (const gchar *email, EContactQuickAddCallback cb, gpoi if (lt != NULL && gt != NULL && (gt - lt) > 0) { name = g_strndup (email, lt - email); addr = g_strndup (lt + 1, gt - lt - 1); + } else { + addr = email; } e_contact_quick_add (name, addr, cb, closure); -- cgit