From: Kamaljeet Chauhan Date: Mon, 26 Jul 2021 14:44:51 +0000 (+0530) Subject: Return type check implemented X-Git-Tag: submit/tizen/20220203.110041~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe12389c9457587a10daefded182c29f62ef59c7;p=platform%2Fcore%2Fpim%2Fcontacts-service.git Return type check implemented Change-Id: Idb86a630954e1cafa5636599d8b9c2d35b069618 Signed-off-by: Kamaljeet Chauhan --- diff --git a/common/ctsvc_record.c b/common/ctsvc_record.c index 94bbbfa..e27b92a 100644 --- a/common/ctsvc_record.c +++ b/common/ctsvc_record.c @@ -493,8 +493,10 @@ int ctsvc_record_set_int(contacts_record_h record, unsigned int property_id, int if (s_record->plugin_cbs && s_record->plugin_cbs->set_int) { bool is_dirty = false; ret = s_record->plugin_cbs->set_int(record, property_id, value, &is_dirty); - if (CONTACTS_ERROR_NONE == ret && is_dirty) - ctsvc_record_set_property_flag(s_record, property_id, CTSVC_PROPERTY_FLAG_DIRTY); + if (CONTACTS_ERROR_NONE == ret && is_dirty) { + if (ctsvc_record_set_property_flag(s_record, property_id, CTSVC_PROPERTY_FLAG_DIRTY) == CONTACTS_ERROR_NONE) + DBG("Property Flags are set properly"); + } return ret; } __INVALID_PARAMETER_ERROR_HANDLING();