aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-08 11:23:46 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-08 11:23:46 +0800
commit9cf83b64d03c5b2b3c12d55decc3a35710760bf0 (patch)
treedde1f4d96930e1bb6447d2ed415f74ce8b925af8 /composer/e-msg-composer.c
parenta37d740fddbd813175adb914f92983fe8c816a8f (diff)
downloadgsoc2013-evolution-9cf83b64d03c5b2b3c12d55decc3a35710760bf0.tar.gz
gsoc2013-evolution-9cf83b64d03c5b2b3c12d55decc3a35710760bf0.tar.zst
gsoc2013-evolution-9cf83b64d03c5b2b3c12d55decc3a35710760bf0.zip
add an assertion for no account set. Discovered from bug #50786.
2004-01-08 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (set_editor_signature): add an assertion for no account set. Discovered from bug #50786. svn path=/trunk/; revision=24101
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 959c67dd2b..722593a372 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -3082,8 +3082,11 @@ set_editor_signature (EMsgComposer *composer)
{
EAccountIdentity *id;
GSList *signatures;
+
+ g_return_if_fail(E_MSG_COMPOSER_HDRS (composer->hdrs)->account != NULL);
/* printf ("set_editor_signature\n"); */
+
id = E_MSG_COMPOSER_HDRS (composer->hdrs)->account->id;
signatures = mail_config_get_signature_list ();