[balsa] Do not pass NULL list to internet_address_list_to_string
- From: Peter Bloomfield <PeterB src gnome org>
- To: svn-commits-list gnome org
- Cc: 
- Subject: [balsa] Do not pass NULL list to internet_address_list_to_string
- Date: Wed,  9 Dec 2009 04:16:23 +0000 (UTC)
commit bf0ec35d3017e6dc527a1cf6503580aa440375c3
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Dec 8 23:16:09 2009 -0500
    Do not pass NULL list to internet_address_list_to_string
 ChangeLog            |    5 +++++
 src/sendmsg-window.c |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 11e8541..932fd2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-08  Peter Bloomfield
+
+	* src/sendmsg-window.c (guess_identity_from_list): do not pass
+	NULL list to internet_address_list_to_string().
+
 2009-12-07  Peter Bloomfield
 
 	* libbalsa/filter.c (libbalsa_condition_matches): do not pass
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index 6f0ae1e..43e1312 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -4233,6 +4233,9 @@ guess_identity_from_list(BalsaSendmsg * bsmsg, InternetAddressList * list,
 {
     gint i;
 
+    if (!list)
+        return FALSE;
+
     for (i = 0; i < internet_address_list_length(list); i++) {
         InternetAddress *ia = internet_address_list_get_address(list, i);
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]