Only add the account address to the list of addresses if it is non-NULL.
2002-10-18 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-hdrs.c (create_from_optionmenu): Only add the account address to the list of addresses if it is non-NULL. Fixes bug #32446 although it shouldn't ever happen anyway (an account address is not allowed to be NULL). svn path=/trunk/; revision=18401
This commit is contained in:
committed by
Jeffrey Stedfast
parent
14432d0716
commit
6dcb454f5a
@ -1,3 +1,10 @@
|
||||
2002-10-18 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* e-msg-composer-hdrs.c (create_from_optionmenu): Only add the
|
||||
account address to the list of addresses if it is non-NULL. Fixes
|
||||
bug #32446 although it shouldn't ever happen anyway (an account
|
||||
address is not allowed to be NULL).
|
||||
|
||||
2002-10-16 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* e-msg-composer-attachment.c (e_msg_composer_attachment_new): We
|
||||
|
||||
@ -209,7 +209,8 @@ create_from_optionmenu (EMsgComposerHdrs *hdrs)
|
||||
accounts = mail_config_get_accounts ();
|
||||
for (a = accounts; a; a = a->next) {
|
||||
account = a->data;
|
||||
g_ptr_array_add (addresses, account->id->address);
|
||||
if (account->id->address)
|
||||
g_ptr_array_add (addresses, account->id->address);
|
||||
}
|
||||
|
||||
while (accounts) {
|
||||
|
||||
Reference in New Issue
Block a user