From a5bbf35da58d8e25de35a0a90c63d31870239dd2 Mon Sep 17 00:00:00 2001 From: Dan Vrátil Date: Mon, 20 Aug 2012 13:06:23 +0200 Subject: Fix all 'may be used uninitialized' compiler warnings --- mail/e-http-request.c | 1 + mail/e-mail-reader-utils.c | 2 +- mail/em-folder-tree.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/e-http-request.c b/mail/e-http-request.c index 0f634688a2..d6fe5d2254 100644 --- a/mail/e-http-request.c +++ b/mail/e-http-request.c @@ -133,6 +133,7 @@ handle_http_request (GSimpleAsyncResult *res, /* Remove the "evo-" prefix from scheme */ uri_len = strlen (evo_uri); + uri = NULL; if (evo_uri && (uri_len > 5)) { /* Remove trailing "?" if there is no URI query */ diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c index 3a8a2cab54..6f0a9822ce 100644 --- a/mail/e-mail-reader-utils.c +++ b/mail/e-mail-reader-utils.c @@ -1320,7 +1320,7 @@ e_mail_reader_reply_to_message (EMailReader *reader, EMailBackend *backend; EShellBackend *shell_backend; EMailDisplay *display; - EMailPartList *part_list; + EMailPartList *part_list = NULL; GtkWidget *message_list; CamelMimeMessage *new_message; CamelInternetAddress *address = NULL; diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 0a19e50bad..590ec684df 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -3507,7 +3507,7 @@ em_folder_tree_restore_state (EMFolderTree *folder_tree, const gchar *group_name = group->data; const gchar *key = STATE_KEY_EXPANDED; gchar *folder_name = NULL; - gboolean expanded; + gboolean expanded = FALSE; gboolean success = FALSE; if (g_str_has_prefix (group_name, "Store ")) { -- cgit