Change-Id: I25d968cfc57a171834ef7c82cfbddc24988877cd
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
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) {
int offset = 0;
int limit = 0;
- if (3 < argc) {
+ if (3 < argc)
i_count = 1;
- }
contacts_connect();