[Contact] Fixed check for CONTACTS_EMAIL_TYPE_OTHER.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Mon, 8 Jun 2015 13:23:32 +0000 (15:23 +0200)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Mon, 8 Jun 2015 13:23:32 +0000 (15:23 +0200)
Prevent CID: 392499

[Verification] TCT pass rate: 441/441.

Change-Id: I33041ca3c0891e90d55e8a5e4313a0a1092ad9e1
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
src/contact/contact_util.cc

index 2c09458978bb436aedb02f1aee2f4384337e7423..8d32193f004f991232724130822e5185dc038c69 100755 (executable)
@@ -699,7 +699,7 @@ PlatformResult ImportContactEmailAddressFromContactsRecord(
   if (type & CONTACTS_EMAIL_TYPE_WORK) {
     types.push_back(JsonValue{kContactEmailAddressTypeWork});
   }
-  if (type & CONTACTS_EMAIL_TYPE_OTHER) {
+  if (CONTACTS_EMAIL_TYPE_OTHER == type) {
     types.push_back(JsonValue{kContactEmailAddressTypeOther});
   }
   if (type & CONTACTS_EMAIL_TYPE_CUSTOM) {