Commit a5bbf35d authored by Dan Vrátil's avatar Dan Vrátil
Browse files

Fix all 'may be used uninitialized' compiler warnings

parent 3afe1d68
......@@ -759,8 +759,8 @@ memo_page_fill_component (CompEditorPage *page,
gchar *backend_addr = NULL;
gchar *backend_mailto = NULL;
gchar *name;
gchar *mailto;
gchar *name = NULL;
gchar *mailto = NULL;
e_client_get_backend_property_sync (E_CLIENT (client), CAL_BACKEND_PROPERTY_CAL_EMAIL_ADDRESS, &backend_addr, NULL, NULL);
......
......@@ -69,6 +69,7 @@ get_tag (const gchar *utf8_string,
gunichar c;
gboolean has_end;
c = '\0';
t = g_utf8_find_prev_char (utf8_string, closing);
while (t != opening) {
......@@ -90,6 +91,7 @@ get_tag (const gchar *utf8_string,
t = g_utf8_find_next_char (t, NULL);
}
has_end = FALSE;
do {
c = g_utf8_get_char (t);
......
......@@ -652,6 +652,8 @@ e_mail_parser_wrap_as_attachment (EMailParser *parser,
if (camel_mime_part_get_encoding (part) == CAMEL_TRANSFER_ENCODING_BASE64)
size = size / 1.37;
} else {
size = 0;
}
/* e_attachment_load_async must be called from main thread */
......
......@@ -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 */
......
......@@ -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;
......
......@@ -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 ")) {
......
......@@ -225,6 +225,7 @@ empe_prefer_plain_parse (EMailParserExtension *extension,
}
nparts = camel_multipart_get_number (mp);
plain_text_parts = NULL;
has_html = FALSE;
for (i = 0; i < nparts; i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment