[Contacts-service][Nno-ACR] Asan issue fixes TFDF-3462,3463 05/212505/1 accepted/tizen/unified/20190823.001438 submit/tizen/20190822.101121
authorkamaljeet <kamal.jc@samsung.com>
Thu, 22 Aug 2019 07:34:43 +0000 (13:04 +0530)
committerkamaljeet <kamal.jc@samsung.com>
Thu, 22 Aug 2019 07:34:43 +0000 (13:04 +0530)
Change-Id: If127af507334be98c3efb206c0a53c168c757bae
Signed-off-by: kamaljeet <kamal.jc@samsung.com>
server/db/ctsvc_db_plugin_contact.c

index 0ba4551..31dac37 100644 (file)
@@ -1596,7 +1596,7 @@ static int __ctsvc_db_contact_get_records_with_query(contacts_query_h query, int
        }
 
        if (false == had_contact_id) {
-               void *tmp = realloc(s_query->projection, sizeof(unsigned int)*(s_query->projection_count+1));
+               int *tmp = (int *)realloc(s_query->projection, sizeof(unsigned int)*(s_query->projection_count+1));
                if (NULL == tmp) {
                        /* LCOV_EXCL_START */
                        ERR("realloc() Fail");