aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-properties.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-properties.c')
-rw-r--r--mail/em-folder-properties.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/mail/em-folder-properties.c b/mail/em-folder-properties.c
index 69c72b3144..08ed28df59 100644
--- a/mail/em-folder-properties.c
+++ b/mail/em-folder-properties.c
@@ -189,7 +189,7 @@ emfp_get_folder_item (EConfig *ec,
}
}
- if (context->folder) {
+ if (context->folder != NULL) {
CamelStore *store;
CamelSession *session;
CamelFolderInfoFlags fi_flags = 0;
@@ -197,10 +197,13 @@ emfp_get_folder_item (EConfig *ec,
store = camel_folder_get_parent_store (context->folder);
session = camel_service_get_session (CAMEL_SERVICE (store));
- folder_cache = e_mail_session_get_folder_cache (E_MAIL_SESSION (session));
+ folder_cache = e_mail_session_get_folder_cache (
+ E_MAIL_SESSION (session));
- can_apply_filters = !CAMEL_IS_VEE_FOLDER (context->folder) &&
- mail_folder_cache_get_folder_info_flags (folder_cache, context->folder, &fi_flags) &&
+ can_apply_filters =
+ !CAMEL_IS_VEE_FOLDER (context->folder) &&
+ mail_folder_cache_get_folder_info_flags (
+ folder_cache, context->folder, &fi_flags) &&
(fi_flags & CAMEL_FOLDER_TYPE_MASK) != CAMEL_FOLDER_TYPE_INBOX;
}