diff options
author | bertrand <Bertrand.Guiheneuf@inria.fr> | 1999-05-20 04:24:23 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-05-20 04:24:23 +0800 |
commit | 429847f57bdfa7955db50ea9fc9e2cecdb5ab081 (patch) | |
tree | 3d842ec76936eb21007a36a522d9b23d84401d33 /camel/gmime-content-field.c | |
parent | f53eb88c5682c59e0e26e9a6e594566fd628e486 (diff) | |
download | gsoc2013-evolution-429847f57bdfa7955db50ea9fc9e2cecdb5ab081.tar.gz gsoc2013-evolution-429847f57bdfa7955db50ea9fc9e2cecdb5ab081.tar.zst gsoc2013-evolution-429847f57bdfa7955db50ea9fc9e2cecdb5ab081.zip |
test if content exists before calling its write_to method.
1999-05-19 bertrand <Bertrand.Guiheneuf@inria.fr>
* camel/camel-mime-part.c (_write_to_file): test if content
exists before calling its write_to method.
* camel/camel-mime-message.c (_write_to_file): bugs fix.
First test of mime_message framework.
svn path=/trunk/; revision=934
Diffstat (limited to 'camel/gmime-content-field.c')
-rw-r--r-- | camel/gmime-content-field.c | 2 |
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)) { |