[evolution] Bug #674282 - Don't crash on reply with empty selection



commit a110f6d7f179593e73201ef899ef5b42f7742dde
Author: Yanko Kaneti <yaneti declera com>
Date:   Wed Apr 18 11:17:39 2012 +0300

    Bug #674282 - Don't crash on reply with empty selection

 mail/e-mail-reader-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c
index d43ef27..350e97a 100644
--- a/mail/e-mail-reader-utils.c
+++ b/mail/e-mail-reader-utils.c
@@ -883,10 +883,10 @@ e_mail_reader_reply_to_message (EMailReader *reader,
 		goto whole_message;
 
 	selection = e_web_view_get_selection_html (web_view);
-	length = strlen (selection);
 	if (selection == NULL || *selection == '\0')
 		goto whole_message;
 
+	length = strlen (selection);
 	if (!html_contains_nonwhitespace (selection, length))
 		goto whole_message;
 



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