diff options
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 5 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index fd5e6c586d..f848a1c8eb 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2007-11-01 Matthew Barnes <mbarnes@redhat.com> + + * e-msg-composer.c (e_msg_composer_set_body_text): + Don't compare a character pointer to a string literal. + 2007-10-31 Kjartan Maraas <kmaraas@gnome.org> * e-msg-composer.c: Remove one more unused header. 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'); } /** |