Change-Id: I0fc1ad417917fe318f42ec3cb59f51f9d50bfdae
static void _create_privacy_guard_item_list(void)
{
item_list = (pg_item_data_s **)malloc(sizeof(pg_item_data_s *) * len);
-
- for (int j = 0; j < len; j++)
+ int j = 0;
+ for (j = 0; j < len; j++)
item_list[j] = (pg_item_data_s *)malloc(sizeof(pg_item_data_s));
}
static void _free_privacy_guard_item_list(void)
{
-
int is_description = 0;
-
- for (int j = 0; j < len; j++) {
+ int j = 0;
+ for (j = 0; j < len; j++) {
free_item(item_list[j], &is_description);
free(item_list[j]);
}