[evolution-ews] Initialize connection variable to NULL in camel_ews_folder_get_message()



commit 23404baeb4e70516af405651a775715e8966fa25
Author: Milan Crha <mcrha redhat com>
Date:   Mon May 23 10:15:29 2016 +0200

    Initialize connection variable to NULL in camel_ews_folder_get_message()
    
    It could be used uninitialized in case the call to
    camel_ews_store_connected() failed, which can either when the store
    is in the offline mode or the connection to the server fails.

 src/camel/camel-ews-folder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/camel/camel-ews-folder.c b/src/camel/camel-ews-folder.c
index 12b9b91..3da85ee 100644
--- a/src/camel/camel-ews-folder.c
+++ b/src/camel/camel-ews-folder.c
@@ -506,7 +506,7 @@ camel_ews_folder_get_message (CamelFolder *folder,
 {
        CamelEwsFolder *ews_folder;
        CamelEwsFolderPrivate *priv;
-       EEwsConnection *cnc;
+       EEwsConnection *cnc = NULL;
        EEwsAdditionalProps *add_props = NULL;
        CamelEwsStore *ews_store;
        const gchar *mime_content;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]