struct uci_sectmap *sm = sd->sm;
struct uci_optmap *om;
int ofs = (char *)field - (char *)section;
- int i;
+ int i = 0;
ucimap_foreach_option(sm, om) {
if (om->offset == ofs) {
SET_BIT(sd->cmap, i);
break;
}
+ i++;
}
}
list->item[list->n_items++].section = ptr;
break;
}
+ free(f);
}
list_for_each_safe(p, tmp, &map->sdata) {
struct uci_sectmap_data *sd = list_entry(p, struct uci_sectmap_data, list);