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

[Verification] TCT pass rate: 441/441.

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

index 2c09458978bb436aedb02f1aee2f4384337e7423..643c4a2507820b6194c9b2002abe46f328a3e845 100755 (executable)
@@ -1979,7 +1979,7 @@ PlatformResult ImportContactAddressFromContactsRecord(
   if (int_value & CONTACTS_ADDRESS_TYPE_WORK) {
     types.push_back(JsonValue{kContactAddressTypeWork});
   }
-  if (int_value & CONTACTS_ADDRESS_TYPE_OTHER) {
+  if (CONTACTS_ADDRESS_TYPE_OTHER == int_value) {
     types.push_back(JsonValue{kContactAddressTypeOther});
   }
   if (int_value & CONTACTS_ADDRESS_TYPE_CUSTOM) {