remove redundancy code 54/45754/1
authorGukhwan Cho <gh78.cho@samsung.com>
Fri, 31 Jul 2015 10:36:00 +0000 (19:36 +0900)
committerMyoungHoon Chae <mhoon.chae@samsung.com>
Tue, 11 Aug 2015 05:29:57 +0000 (14:29 +0900)
Change-Id: I67faaa185f95aa14f363441be1d7955068031582
Signed-off-by: Gukhwan Cho <gh78.cho@samsung.com>
native/ctsvc_db_query.c

index 25a1da2..adee62c 100644 (file)
@@ -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);