[balsa] Do not append NULL internet-address list
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Do not append NULL internet-address list
- Date: Wed, 3 Mar 2010 18:50:13 +0000 (UTC)
commit 3e22f15147b2b64eebbc5d499d38cf88d1b984e7
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed Mar 3 13:48:54 2010 -0500
Do not append NULL internet-address list
* libbalsa/address-view.c (libbalsa_address_view_get_list): do
not append NULL list in internet_address_list_append.
ChangeLog | 5 +++++
libbalsa/address-view.c | 8 +++++---
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 73d50c0..7102328 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-03 Peter Bloomfield
+
+ * libbalsa/address-view.c (libbalsa_address_view_get_list): do
+ not append NULL list in internet_address_list_append.
+
2010-02-28 Peter Bloomfield
* src/folder-conf.c (folder_conf_imap_sub_node): remove mnemonic
diff --git a/libbalsa/address-view.c b/libbalsa/address-view.c
index 1abbffe..307f49c 100644
--- a/libbalsa/address-view.c
+++ b/libbalsa/address-view.c
@@ -1243,11 +1243,13 @@ libbalsa_address_view_get_list(LibBalsaAddressView * address_view,
ADDRESS_TYPE_COL, &this_type,
ADDRESS_NAME_COL, &name, -1);
- if (this_type == type && name && *name) {
+ if (this_type == type) {
InternetAddressList *tmp_list =
internet_address_list_parse_string(name);
- internet_address_list_append(address_list, tmp_list);
- g_object_unref(tmp_list);
+ if (tmp_list) {
+ internet_address_list_append(address_list, tmp_list);
+ g_object_unref(tmp_list);
+ }
}
g_free(name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]