diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-05-23 00:11:49 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-05-24 04:36:01 +0800 |
commit | 256422cab27d0b7adbe99fdeaceb72cd78c129bb (patch) | |
tree | 8d087e570e7656e7d088232d98c52636c95baed0 /em-format/e-mail-formatter-attachment.c | |
parent | 37c5951635a4f45ba26b0f95ce7af61275d47fba (diff) | |
download | gsoc2013-evolution-256422cab27d0b7adbe99fdeaceb72cd78c129bb.tar.gz gsoc2013-evolution-256422cab27d0b7adbe99fdeaceb72cd78c129bb.tar.zst gsoc2013-evolution-256422cab27d0b7adbe99fdeaceb72cd78c129bb.zip |
Attachment-related cleanups.
Diffstat (limited to 'em-format/e-mail-formatter-attachment.c')
-rw-r--r-- | em-format/e-mail-formatter-attachment.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/em-format/e-mail-formatter-attachment.c b/em-format/e-mail-formatter-attachment.c index 0a100e0987..1003b55eef 100644 --- a/em-format/e-mail-formatter-attachment.c +++ b/em-format/e-mail-formatter-attachment.c @@ -209,7 +209,7 @@ emfe_attachment_format (EMailFormatterExtension *extension, display_name = g_file_info_get_display_name (fi); description = e_attachment_get_description (attachment); - if (description && *description) { + if (description != NULL && *description != '\0') { name = g_strdup_printf ( "<h2>Attachment: %s (%s)</h2>\n", description, display_name); @@ -219,7 +219,9 @@ emfe_attachment_format (EMailFormatterExtension *extension, display_name); } - camel_stream_write_string (stream, name, cancellable, NULL); + camel_stream_write_string ( + stream, name, cancellable, NULL); + g_free (name); g_object_unref (attachment); |