Change-Id: Ib8a3beed88832b2a84ba2bbf8ad75f352afb0e91
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
while (g_variant_iter_loop(&iter, "a{sv}", &iter_row)) {
account_s *account = get_unmarshal_data(iter_row);
- if (account == NULL) {
- _ERR("failed to get un-marshal data");
- return NULL;
+ if (account != NULL) {
+ list = g_slist_append(list, account);
}
- list = g_slist_append(list, account);
}
+ if (list == NULL)
+ _DBG("empty list");
+
_INFO("unmarshal_account_list end");
return list;
}