aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2009-06-25 16:43:03 +0800
committerSrinivasa Ragavan <sragavan@novell.com>2009-06-25 16:43:03 +0800
commit7984b925c84692df2ea9d30480431c8a84c0b657 (patch)
tree555b2a22f784a6024eab11cc3cf133139063749c /mail
parent87773593220e581de841e837c29acb99a818c890 (diff)
downloadgsoc2013-evolution-7984b925c84692df2ea9d30480431c8a84c0b657.tar.gz
gsoc2013-evolution-7984b925c84692df2ea9d30480431c8a84c0b657.tar.zst
gsoc2013-evolution-7984b925c84692df2ea9d30480431c8a84c0b657.zip
Fix some warnings
Diffstat (limited to 'mail')
-rw-r--r--mail/em-composer-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index d76fc4eecb..9341950335 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -788,7 +788,7 @@ edit_message (CamelMimeMessage *message, CamelFolder *drafts, const gchar *uid)
content = camel_medium_get_content_object ((CamelMedium *) message);
if (!content)
- return;
+ return NULL;
/*
* Get non-multipart content from multipart message.
@@ -801,11 +801,11 @@ edit_message (CamelMimeMessage *message, CamelFolder *drafts, const gchar *uid)
}
if (!mime_part)
- return;
+ return NULL;
type = camel_mime_part_get_content_type (mime_part);
if (!camel_content_type_is (type, "text", "plain"))
- return;
+ return NULL;
mem = camel_stream_mem_new ();
camel_data_wrapper_decode_to_stream (content, mem);
@@ -928,7 +928,7 @@ GtkWidget *
em_utils_edit_message (CamelMimeMessage *message, CamelFolder *folder)
{
GtkWidget *composer = NULL;
- g_return_if_fail (CAMEL_IS_MIME_MESSAGE (message));
+ g_return_val_if_fail (CAMEL_IS_MIME_MESSAGE (message), NULL);
if (folder)
composer = edit_message (message, folder, NULL);