From 661e18ae52310d3489f3a672e1b912fc5b93d528 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 25 Jul 2001 16:03:04 +0000 Subject: Initialize `me' to NULL. 2001-07-25 Jeffrey Stedfast * mail-callbacks.c (mail_generate_reply): Initialize `me' to NULL. svn path=/trunk/; revision=11400 --- mail/mail-config.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'mail/mail-config.c') diff --git a/mail/mail-config.c b/mail/mail-config.c index 7afe156d15..9448b3372c 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -1266,22 +1266,22 @@ mail_config_set_default_charset (const char *charset) const MailConfigAccount * mail_config_get_default_account (void) { - MailConfigAccount *retval; - + MailConfigAccount *account; + if (!config->accounts) return NULL; - - retval = g_slist_nth_data (config->accounts, + + account = g_slist_nth_data (config->accounts, config->default_account); - + /* Looks like we have no default, so make the first account the default */ - if (retval == NULL) { + if (account == NULL) { mail_config_set_default_account_num (0); - retval = config->accounts->data; + account = config->accounts->data; } - - return retval; + + return account; } const MailConfigAccount * -- cgit