aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index fab4a57b8b..314f7f8ebf 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -5100,8 +5100,9 @@ void
e_msg_composer_set_body_text (EMsgComposer *composer, const char *text, ssize_t len)
{
g_return_if_fail (E_IS_MSG_COMPOSER (composer));
+ g_return_if_fail (text != NULL);
- set_editor_text (composer, text, len, TRUE, text == "");
+ set_editor_text (composer, text, len, TRUE, *text == '\0');
}
/**