[evolution] 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] Bug 599245 - Use bitwise AND instead of logical AND for checking flags
- Date: Thu, 22 Oct 2009 04:19:38 +0000 (UTC)
commit 224c0cb2b98c925365d0dbaed8e7ef1d7f5cde32
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 a720236..f89b2da 100644
--- a/plugins/pst-import/pst-importer.c
+++ b/plugins/pst-import/pst-importer.c
@@ -910,13 +910,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]