aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-06-16 03:34:54 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-06-16 03:34:54 +0800
commite088dbce225e56862a0076ed6465eb217a56a977 (patch)
treef9d9fca5398dd529295e7c0c189471c790f4c68d /mail/mail-ops.c
parentb0bac93a1ef3963c1d432a06015e09e1042208d0 (diff)
downloadgsoc2013-evolution-e088dbce225e56862a0076ed6465eb217a56a977.tar
gsoc2013-evolution-e088dbce225e56862a0076ed6465eb217a56a977.tar.gz
gsoc2013-evolution-e088dbce225e56862a0076ed6465eb217a56a977.tar.bz2
gsoc2013-evolution-e088dbce225e56862a0076ed6465eb217a56a977.tar.lz
gsoc2013-evolution-e088dbce225e56862a0076ed6465eb217a56a977.tar.xz
gsoc2013-evolution-e088dbce225e56862a0076ed6465eb217a56a977.tar.zst
gsoc2013-evolution-e088dbce225e56862a0076ed6465eb217a56a977.zip
Fixed misuse of an uninitialized variable.
2001-06-15 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_send_message): Fixed misuse of an uninitialized variable. * component-factory.c (destination_folder_handle_drop): Implemented. * mail.h: Added prototype for evolution_folder_info_factory_init. * mail-ops.c (mail_do_transfer_messages): Now takes a const char* as the dest_uri. This works better all around since we strdup'd the string anyway. svn path=/trunk/; revision=10255
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index de2a933249..f79857de69 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -501,7 +501,7 @@ mail_send_message(CamelMimeMessage *message, const char *destination, CamelFilte
/* Get information about the account this was composed by. */
acct_header = g_strdup (camel_medium_get_header (CAMEL_MEDIUM (message), "X-Evolution-Account"));
- if (header) {
+ if (acct_header) {
const MailConfigAccount *account;
account = mail_config_get_account_by_name (acct_header);
@@ -900,7 +900,8 @@ struct _transfer_msg {
char *dest_uri;
};
-static char *transfer_messages_desc(struct _mail_msg *mm, int done)
+static char *
+transfer_messages_desc (struct _mail_msg *mm, int done)
{
struct _transfer_msg *m = (struct _transfer_msg *)mm;
@@ -909,7 +910,8 @@ static char *transfer_messages_desc(struct _mail_msg *mm, int done)
}
-static void transfer_messages_transfer(struct _mail_msg *mm)
+static void
+transfer_messages_transfer (struct _mail_msg *mm)
{
struct _transfer_msg *m = (struct _transfer_msg *)mm;
CamelFolder *dest;
@@ -941,7 +943,8 @@ static void transfer_messages_transfer(struct _mail_msg *mm)
camel_object_unref((CamelObject *)dest);
}
-static void transfer_messages_free(struct _mail_msg *mm)
+static void
+transfer_messages_free (struct _mail_msg *mm)
{
struct _transfer_msg *m = (struct _transfer_msg *)mm;
int i;
@@ -964,14 +967,14 @@ static struct _mail_msg_op transfer_messages_op = {
void
mail_do_transfer_messages (CamelFolder *source, GPtrArray *uids,
gboolean delete_from_source,
- gchar *dest_uri)
+ const char *dest_uri)
{
struct _transfer_msg *m;
-
+
g_return_if_fail (CAMEL_IS_FOLDER (source));
g_return_if_fail (uids != NULL);
g_return_if_fail (dest_uri != NULL);
-
+
m = mail_msg_new(&transfer_messages_op, NULL, sizeof(*m));
m->source = source;
camel_object_ref((CamelObject *)source);