diff options
author | Dan Vrátil <dvratil@redhat.com> | 2012-08-20 19:06:23 +0800 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2012-08-20 19:06:23 +0800 |
commit | a5bbf35da58d8e25de35a0a90c63d31870239dd2 (patch) | |
tree | b2497d91f686a41a08eee75bc11833cf0c0386e8 /em-format | |
parent | 3afe1d68fc5ed8a69da165221228881ff877c863 (diff) | |
download | gsoc2013-evolution-a5bbf35da58d8e25de35a0a90c63d31870239dd2.tar gsoc2013-evolution-a5bbf35da58d8e25de35a0a90c63d31870239dd2.tar.gz gsoc2013-evolution-a5bbf35da58d8e25de35a0a90c63d31870239dd2.tar.bz2 gsoc2013-evolution-a5bbf35da58d8e25de35a0a90c63d31870239dd2.tar.lz gsoc2013-evolution-a5bbf35da58d8e25de35a0a90c63d31870239dd2.tar.xz gsoc2013-evolution-a5bbf35da58d8e25de35a0a90c63d31870239dd2.tar.zst gsoc2013-evolution-a5bbf35da58d8e25de35a0a90c63d31870239dd2.zip |
Fix all 'may be used uninitialized' compiler warnings
Diffstat (limited to 'em-format')
-rw-r--r-- | em-format/e-mail-formatter-text-html.c | 2 | ||||
-rw-r--r-- | em-format/e-mail-parser.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/em-format/e-mail-formatter-text-html.c b/em-format/e-mail-formatter-text-html.c index f4fb3ea4dd..5f493b2f4d 100644 --- a/em-format/e-mail-formatter-text-html.c +++ b/em-format/e-mail-formatter-text-html.c @@ -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); diff --git a/em-format/e-mail-parser.c b/em-format/e-mail-parser.c index 3b1b2a2a72..c718f79425 100644 --- a/em-format/e-mail-parser.c +++ b/em-format/e-mail-parser.c @@ -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 */ |