aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-08-31 13:24:51 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-08-31 13:24:51 +0800
commite7d6ad6d83acd3aba0dc11d4955339b20ccc8cf3 (patch)
treea3bc6a92164f3659ae93f5ff168ef3eed924926c /mail/em-format-html.c
parent9ea10deea3b27d7bde1b82792cae76b99b5610f6 (diff)
downloadgsoc2013-evolution-e7d6ad6d83acd3aba0dc11d4955339b20ccc8cf3.tar
gsoc2013-evolution-e7d6ad6d83acd3aba0dc11d4955339b20ccc8cf3.tar.gz
gsoc2013-evolution-e7d6ad6d83acd3aba0dc11d4955339b20ccc8cf3.tar.bz2
gsoc2013-evolution-e7d6ad6d83acd3aba0dc11d4955339b20ccc8cf3.tar.lz
gsoc2013-evolution-e7d6ad6d83acd3aba0dc11d4955339b20ccc8cf3.tar.xz
gsoc2013-evolution-e7d6ad6d83acd3aba0dc11d4955339b20ccc8cf3.tar.zst
gsoc2013-evolution-e7d6ad6d83acd3aba0dc11d4955339b20ccc8cf3.zip
** Move away from g_assert to g_return* calls
svn path=/trunk/; revision=34143
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r--mail/em-format-html.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index 47c62e4c23..afd2c653a5 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -348,7 +348,10 @@ em_format_html_add_pobject(EMFormatHTML *efh, size_t size, const char *classid,
{
EMFormatHTMLPObject *pobj;
- g_assert(size >= sizeof(EMFormatHTMLPObject));
+ if (size < sizeof(EMFormatHTMLPObject)) {
+ g_warning ("size is less than the size of EMFormatHTMLPObject\n");
+ size = sizeof(EMFormatHTMLPObject);
+ }
pobj = g_malloc0(size);
if (classid)
@@ -1359,7 +1362,7 @@ efh_format_timeout(struct _format_msg *m)
return TRUE;
}
- g_assert(e_dlist_empty(&p->pending_jobs));
+ g_return_val_if_fail (e_dlist_empty(&p->pending_jobs), FALSE);
d(printf(" ready to go, firing off format thread\n"));