diff options
author | Not Zed <NotZed@Ximian.com> | 2004-01-08 11:23:46 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-01-08 11:23:46 +0800 |
commit | 9cf83b64d03c5b2b3c12d55decc3a35710760bf0 (patch) | |
tree | dde1f4d96930e1bb6447d2ed415f74ce8b925af8 /composer | |
parent | a37d740fddbd813175adb914f92983fe8c816a8f (diff) | |
download | gsoc2013-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')
-rw-r--r-- | composer/ChangeLog | 5 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 1c014c4b4f..bd749f9742 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +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. + 2004-01-07 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (create_composer): Remove the 6-pixel border 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 (); |