From 6dcb454f5ab46e4e4893643234a05ee41fd90517 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 21 Oct 2002 16:56:18 +0000 Subject: Only add the account address to the list of addresses if it is non-NULL. 2002-10-18 Jeffrey Stedfast * 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 --- composer/e-msg-composer-hdrs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'composer/e-msg-composer-hdrs.c') 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) { -- cgit v1.2.3