[evolution/gnome-2-30] Fix a potential crasher in e_contact_quick_add_email().



commit d1a03a7d97f934a1f4cb8f23940403a4c9415ecd
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Apr 25 23:45:44 2010 -0400

    Fix a potential crasher in e_contact_quick_add_email().

 .../gui/contact-editor/e-contact-quick-add.c       |    2 +-
 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 d10ceea..6a8a5fd 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]