2007-07-13 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Fri, 13 Jul 2007 18:10:39 +0000 (18:10 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Fri, 13 Jul 2007 18:10:39 +0000 (18:10 +0000)
* src/modest-mail-operation.c: (update_account_thread):
Initialized num_new_headers to fix the build.

pmo-trunk-r2737

ChangeLog2
src/modest-mail-operation.c

index fb12d90..4a2acbc 100644 (file)
@@ -1,4 +1,9 @@
-2007-07-13  MMurray Cumming  <murrayc@murrayc.com>
+2007-07-13  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/modest-mail-operation.c: (update_account_thread):
+       Initialized num_new_headers to fix the build.
+
+2007-07-13  Murray Cumming  <murrayc@murrayc.com>
 
        * src/modest-account-mgr.c: (modest_account_mgr_account_names):
        Ignore modest accounts whose server accounts don't exist in gconf.
 
        * src/modest-account-mgr.c: (modest_account_mgr_account_names):
        Ignore modest accounts whose server accounts don't exist in gconf.
index a1c308d..19274c6 100644 (file)
@@ -1139,14 +1139,14 @@ static gpointer
 update_account_thread (gpointer thr_user_data)
 {
        static gboolean first_time = TRUE;
 update_account_thread (gpointer thr_user_data)
 {
        static gboolean first_time = TRUE;
-       UpdateAccountInfo *info;
+       UpdateAccountInfo *info = NULL;
        TnyList *all_folders = NULL;
        GPtrArray *new_headers = NULL;
        TnyIterator *iter = NULL;
        TnyFolderStoreQuery *query = NULL;
        ModestMailOperationPrivate *priv = NULL;
        ModestTnySendQueue *send_queue = NULL;
        TnyList *all_folders = NULL;
        GPtrArray *new_headers = NULL;
        TnyIterator *iter = NULL;
        TnyFolderStoreQuery *query = NULL;
        ModestMailOperationPrivate *priv = NULL;
        ModestTnySendQueue *send_queue = NULL;
-       gint num_new_headers;
+       gint num_new_headers = 0;
 
        info = (UpdateAccountInfo *) thr_user_data;
        priv = MODEST_MAIL_OPERATION_GET_PRIVATE(info->mail_op);
 
        info = (UpdateAccountInfo *) thr_user_data;
        priv = MODEST_MAIL_OPERATION_GET_PRIVATE(info->mail_op);