[evolution/gnome-2-28] Bug 599245 - Use bitwise AND instead of logical AND for checking flags
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution/gnome-2-28] Bug 599245 - Use bitwise AND instead of logical AND for checking flags
- Date: Thu, 22 Oct 2009 04:20:19 +0000 (UTC)
commit 0380306f0384a837232d17b286dc25bc568cbe52
Author: Thomas Andersen <phomes gmail com>
Date: Thu Oct 22 00:19:09 2009 -0400
Bug 599245 - Use bitwise AND instead of logical AND for checking flags
plugins/pst-import/pst-importer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/pst-import/pst-importer.c b/plugins/pst-import/pst-importer.c
index ddc7e76..3530b7c 100644
--- a/plugins/pst-import/pst-importer.c
+++ b/plugins/pst-import/pst-importer.c
@@ -908,13 +908,13 @@ pst_process_email (PstImporter *m, pst_item *item)
info = camel_message_info_new (NULL);
/* Read message flags (see comments in libpst.c */
- if (item->flags && 0x01)
+ if (item->flags & 0x01)
camel_message_info_set_flags (info, CAMEL_MESSAGE_SEEN, ~0);
if (item->email->importance == 2)
camel_message_info_set_flags (info, CAMEL_MESSAGE_FLAGGED, ~0);
- if (item->flags && 0x08)
+ if (item->flags & 0x08)
camel_message_info_set_flags (info, CAMEL_MESSAGE_DRAFT, ~0);
camel_folder_append_message (m->folder, msg, info, NULL, &m->ex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]