diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-10-22 00:56:18 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-10-22 00:56:18 +0800 |
commit | 6dcb454f5ab46e4e4893643234a05ee41fd90517 (patch) | |
tree | 94ca91a2324cb9e7ef73e5c1ff4281b1f849a5fa /composer/e-msg-composer-hdrs.c | |
parent | 14432d071634e28570059c0921fa301e3937a061 (diff) | |
download | gsoc2013-evolution-6dcb454f5ab46e4e4893643234a05ee41fd90517.tar.gz gsoc2013-evolution-6dcb454f5ab46e4e4893643234a05ee41fd90517.tar.zst gsoc2013-evolution-6dcb454f5ab46e4e4893643234a05ee41fd90517.zip |
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
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 7e09eb64f4..46bcbd1f46 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -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) { |