diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2007-11-01 19:26:50 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-11-01 19:26:50 +0800 |
commit | 88a914e0e874ece8e1aa2267256cc55d2bc54025 (patch) | |
tree | e45543a45efa34d608052016065b527f9b1cb282 /composer | |
parent | 5637a10ef700f76390a84c14cb2ecf39013cb5c8 (diff) | |
download | gsoc2013-evolution-88a914e0e874ece8e1aa2267256cc55d2bc54025.tar gsoc2013-evolution-88a914e0e874ece8e1aa2267256cc55d2bc54025.tar.gz gsoc2013-evolution-88a914e0e874ece8e1aa2267256cc55d2bc54025.tar.bz2 gsoc2013-evolution-88a914e0e874ece8e1aa2267256cc55d2bc54025.tar.lz gsoc2013-evolution-88a914e0e874ece8e1aa2267256cc55d2bc54025.tar.xz 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')
-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'); } /** |