fix coding rule violations 70/103970/1 accepted/tizen/3.0/common/20161213.163537 accepted/tizen/3.0/ivi/20161213.024239 accepted/tizen/3.0/mobile/20161213.024218 accepted/tizen/3.0/wearable/20161213.024227 submit/tizen_3.0/20161212.041557
authorJongkyu Koo <jk.koo@samsung.com>
Mon, 12 Dec 2016 03:34:46 +0000 (12:34 +0900)
committerJongkyu Koo <jk.koo@samsung.com>
Mon, 12 Dec 2016 03:34:46 +0000 (12:34 +0900)
Change-Id: I25d968cfc57a171834ef7c82cfbddc24988877cd
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
server/ctsvc_server_person.c
test/test_query.c

index dc915e2..5773c79 100644 (file)
@@ -840,8 +840,7 @@ int ctsvc_person_aggregate(int person_id)
                        addressbook_ids = calloc(addressbooks_len + 1, sizeof(char));
                        if (NULL == addressbook_ids)
                                ERR("alloc() failed");
-               }
-               else if (addressbooks_len <= strlen(addressbook_ids) + addr_len) {
+               } else if (addressbooks_len <= strlen(addressbook_ids) + addr_len) {
                        int new_addressbooks_len = MAX(addressbooks_len * 2, strlen(addressbook_ids) + addr_len + 1);
                        char *new_addressbook_ids = realloc(addressbook_ids, new_addressbooks_len);
                        if (new_addressbook_ids) {
index 8a7a735..44dcda3 100644 (file)
@@ -349,9 +349,8 @@ static int test_get_records(int argc, char **argv)
        int offset = 0;
        int limit = 0;
 
-       if (3 < argc) {
+       if (3 < argc)
                i_count = 1;
-       }
 
        contacts_connect();