[evolution/express2] Fix a potential crasher in e_contact_quick_add_email().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/express2] Fix a potential crasher in e_contact_quick_add_email().
- Date: Thu, 29 Apr 2010 17:13:04 +0000 (UTC)
commit 14be589bba72db8a649a88f34234bf8af9170de2
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]