From 256422cab27d0b7adbe99fdeaceb72cd78c129bb Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 22 May 2013 12:11:49 -0400 Subject: Attachment-related cleanups. --- em-format/e-mail-parser.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'em-format/e-mail-parser.c') diff --git a/em-format/e-mail-parser.c b/em-format/e-mail-parser.c index 929662f943..f31e0ca199 100644 --- a/em-format/e-mail-parser.c +++ b/em-format/e-mail-parser.c @@ -732,22 +732,22 @@ e_mail_parser_wrap_as_attachment (EMailParser *parser, NULL); if (size != 0) { - GFileInfo *fileinfo; + GFileInfo *file_info; - fileinfo = e_attachment_get_file_info (attachment); + file_info = e_attachment_get_file_info (attachment); - if (!fileinfo) { - fileinfo = g_file_info_new (); + if (file_info == NULL) { + file_info = g_file_info_new (); g_file_info_set_content_type ( - fileinfo, empa->snoop_mime_type); + file_info, empa->snoop_mime_type); } else { - g_object_ref (fileinfo); + g_object_ref (file_info); } - g_file_info_set_size (fileinfo, size); - e_attachment_set_file_info (attachment, fileinfo); + g_file_info_set_size (file_info, size); + e_attachment_set_file_info (attachment, file_info); - g_object_unref (fileinfo); + g_object_unref (file_info); } g_object_unref (attachment); -- cgit