aboutsummaryrefslogtreecommitdiffstats
path: root/camel/gmime-content-field.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/gmime-content-field.c')
-rw-r--r--camel/gmime-content-field.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/gmime-content-field.c b/camel/gmime-content-field.c
index e5eb81155e..29c5fb61ec 100644
--- a/camel/gmime-content-field.c
+++ b/camel/gmime-content-field.c
@@ -78,7 +78,7 @@ _print_parameter (gpointer name, gpointer value, gpointer user_data)
void
gmime_content_field_write_to_file(GMimeContentField *content_field, FILE *file)
{
- g_assert(content_field);
+ if (!content_field) return;
if ((content_field->type) && ((content_field->type)->str)) {
fprintf (file, "Content-Type: %s", content_field->type->str);
if ((content_field->subtype) && ((content_field->subtype)->str)) {