aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorYanko Kaneti <yaneti@declera.com>2012-04-18 16:17:39 +0800
committerYanko Kaneti <yaneti@declera.com>2012-04-18 16:17:39 +0800
commita110f6d7f179593e73201ef899ef5b42f7742dde (patch)
tree84a3c34c6f3231adaab66094a2b2d205930d16f4 /mail
parent3cfe8dad1685189ce0ae300a50114b5896e79e9f (diff)
downloadgsoc2013-evolution-a110f6d7f179593e73201ef899ef5b42f7742dde.tar
gsoc2013-evolution-a110f6d7f179593e73201ef899ef5b42f7742dde.tar.gz
gsoc2013-evolution-a110f6d7f179593e73201ef899ef5b42f7742dde.tar.bz2
gsoc2013-evolution-a110f6d7f179593e73201ef899ef5b42f7742dde.tar.lz
gsoc2013-evolution-a110f6d7f179593e73201ef899ef5b42f7742dde.tar.xz
gsoc2013-evolution-a110f6d7f179593e73201ef899ef5b42f7742dde.tar.zst
gsoc2013-evolution-a110f6d7f179593e73201ef899ef5b42f7742dde.zip
Bug #674282 - Don't crash on reply with empty selection
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-reader-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c
index d43ef27dc3..350e97a102 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;