From: Gukhwan Cho Date: Fri, 31 Jul 2015 10:36:00 +0000 (+0900) Subject: remove redundancy code X-Git-Tag: accepted/tizen/mobile/20150818.100744~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F45754%2F1;p=platform%2Fcore%2Fpim%2Fcontacts-service.git remove redundancy code Change-Id: I67faaa185f95aa14f363441be1d7955068031582 Signed-off-by: Gukhwan Cho --- diff --git a/native/ctsvc_db_query.c b/native/ctsvc_db_query.c index 25a1da2..adee62c 100644 --- a/native/ctsvc_db_query.c +++ b/native/ctsvc_db_query.c @@ -2251,7 +2251,6 @@ static inline int __ctsvc_db_search_records_with_query_exec(ctsvc_query_s *s_que if (0 <= temp_len) len = temp_len; if (condition && *condition) { - len += snprintf(query+len, sizeof(query)-len, " AND (%s)", condition); temp_len = SAFE_SNPRINTF(&query, &query_size, len, " AND ("); if (0 <= temp_len) len+= temp_len; temp_len = SAFE_SNPRINTF(&query, &query_size, len, condition);