[evolution] EMsgComposer - Avoid crash when "editting as new" the plain text message without text



commit e3ee83bce2ba4c2b10d7412584596de386a6ae3a
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Aug 28 16:47:12 2014 +0200

    EMsgComposer - Avoid crash when "editting as new" the plain text message without text
    
    Initialize the used variables with default values.

 composer/e-msg-composer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index a728263..93c7ef4 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -3528,8 +3528,8 @@ e_msg_composer_new_with_message (EShell *shell,
        } else {
                CamelMimePart *mime_part;
                gboolean is_html = FALSE;
-               gchar *html;
-               gssize length;
+               gchar *html = NULL;
+               gssize length = 0;
 
                mime_part = CAMEL_MIME_PART (message);
                content_type = camel_mime_part_get_content_type (mime_part);


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