aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2007-11-01 19:26:50 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-11-01 19:26:50 +0800
commit88a914e0e874ece8e1aa2267256cc55d2bc54025 (patch)
treee45543a45efa34d608052016065b527f9b1cb282 /composer/e-msg-composer.c
parent5637a10ef700f76390a84c14cb2ecf39013cb5c8 (diff)
downloadgsoc2013-evolution-88a914e0e874ece8e1aa2267256cc55d2bc54025.tar.gz
gsoc2013-evolution-88a914e0e874ece8e1aa2267256cc55d2bc54025.tar.zst
gsoc2013-evolution-88a914e0e874ece8e1aa2267256cc55d2bc54025.zip
** Miscellaneous compiler warning fixes.
2007-11-01 Matthew Barnes <mbarnes@redhat.com> ** Miscellaneous compiler warning fixes. * composer/e-msg-composer.c (e_msg_composer_set_body_text): * shell/e-user-creatable-items-handler.c (ensure_menu_items): Don't compare a character pointer to a string literal. * widgets/table/e-table-click-to-add.c (etcta_add_message): Fix a const warning. svn path=/trunk/; revision=34476
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');
}
/**