From e25f7dd70bfb336de7049e9cb0451418f873a430 Mon Sep 17 00:00:00 2001 From: kamaljeet Date: Thu, 22 Aug 2019 13:04:43 +0530 Subject: [PATCH] [Contacts-service][Nno-ACR] Asan issue fixes TFDF-3462,3463 Change-Id: If127af507334be98c3efb206c0a53c168c757bae Signed-off-by: kamaljeet --- server/db/ctsvc_db_plugin_contact.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/db/ctsvc_db_plugin_contact.c b/server/db/ctsvc_db_plugin_contact.c index 0ba4551..31dac37 100644 --- a/server/db/ctsvc_db_plugin_contact.c +++ b/server/db/ctsvc_db_plugin_contact.c @@ -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"); -- 2.7.4