uci_free_element(&s->e);
}
-__plugin struct uci_package *
+__private struct uci_package *
uci_alloc_package(struct uci_context *ctx, const char *name)
{
struct uci_package *p;
UCI_ASSERT(ctx, ptr->s);
- if (ptr->value && ptr->o && ptr->o->type == UCI_TYPE_LIST) {
+ if (ptr->value && *ptr->value && ptr->o && ptr->o->type == UCI_TYPE_LIST) {
if (!sscanf(ptr->value, "%d", &index))
return 1;