diff options
author | Not Zed <NotZed@Ximian.com> | 2001-08-10 09:31:57 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-08-10 09:31:57 +0800 |
commit | ccba1d3a600f88e3a81cfcabf67104c8793a79c0 (patch) | |
tree | 75a6f1f6aff26637dc98e9be9e23ef418d143e00 /mail/mail-ops.c | |
parent | ed70b7f1412307294fd33e35aa981a37363c15e0 (diff) | |
download | gsoc2013-evolution-ccba1d3a600f88e3a81cfcabf67104c8793a79c0.tar.gz gsoc2013-evolution-ccba1d3a600f88e3a81cfcabf67104c8793a79c0.tar.zst gsoc2013-evolution-ccba1d3a600f88e3a81cfcabf67104c8793a79c0.zip |
Dont want it to keep on running if it got bad arguments, want it to bloody
2001-08-10 Not Zed <NotZed@Ximian.com>
* mail-ops.c (mail_transfer_messages): Dont want it to keep on
running if it got bad arguments, want it to bloody well crash.
(mail_append_mail): Same here.
svn path=/trunk/; revision=11865
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 6f293502cc..c06069dddc 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -863,8 +863,8 @@ mail_append_mail (CamelFolder *folder, CamelMimeMessage *message, CamelMessageIn { struct _append_msg *m; - g_return_if_fail (CAMEL_IS_FOLDER (folder)); - g_return_if_fail (CAMEL_IS_MIME_MESSAGE (message)); + g_assert(CAMEL_IS_FOLDER (folder)); + g_assert(CAMEL_IS_MIME_MESSAGE (message)); m = mail_msg_new (&append_mail_op, NULL, sizeof (*m)); m->folder = folder; @@ -996,9 +996,9 @@ mail_transfer_messages (CamelFolder *source, GPtrArray *uids, { struct _transfer_msg *m; - g_return_if_fail (CAMEL_IS_FOLDER (source)); - g_return_if_fail (uids != NULL); - g_return_if_fail (dest_uri != NULL); + g_assert(CAMEL_IS_FOLDER (source)); + g_assert(uids != NULL); + g_assert(dest_uri != NULL); m = mail_msg_new(&transfer_messages_op, NULL, sizeof(*m)); m->source = source; |