From 88e39d1da468c96136518441377fe454867dbe26 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 23 May 2007 11:48:24 +0000 Subject: [PATCH] 2007-05-23 Christian Kellner * src/modest-mail-operation.c: (modest_mail_operation_update_account): Use info->max_size instead of unintialized local var [small build fix]. (Added TODO to review that change since I don't know the code) pmo-trunk-r1962 --- ChangeLog2 | 8 ++++++++ src/modest-mail-operation.c | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog2 b/ChangeLog2 index dab6a4d..22ab4f1 100644 --- a/ChangeLog2 +++ b/ChangeLog2 @@ -1,3 +1,11 @@ +2007-05-23 Christian Kellner + + * src/modest-mail-operation.c: + (modest_mail_operation_update_account): + Use info->max_size instead of unintialized local var [small + build fix]. (Added TODO to review that change since I don't + know the code) + 2007-05-23 Marcus Bauer * libmodest-dbus-client/libmodest-dbus-client.c: diff --git a/src/modest-mail-operation.c b/src/modest-mail-operation.c index 7ccdcb4..a551a16 100644 --- a/src/modest-mail-operation.c +++ b/src/modest-mail-operation.c @@ -604,7 +604,6 @@ modest_mail_operation_update_account (ModestMailOperation *self, ModestAccountMgr *mgr; TnyStoreAccount *modest_account; TnyTransportAccount *transport_account; - gint max_size; g_return_val_if_fail (MODEST_IS_MAIL_OPERATION (self), FALSE); g_return_val_if_fail (account_name, FALSE); @@ -657,7 +656,7 @@ modest_mail_operation_update_account (ModestMailOperation *self, if (info->max_size == 0) info->max_size = G_MAXINT; else - info->max_size = max_size * KB; + info->max_size = info->max_size * KB; /* TODO: review this fix */ mgr = modest_runtime_get_account_mgr (); info->retrieve_type = modest_account_mgr_get_string (mgr, account_name, MODEST_ACCOUNT_RETRIEVE, FALSE); -- 1.7.9.5