X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=file.c;h=740b1d55bd0512133c721d28a77682ba8d4178b0;hp=d320ba6c3cd66d49bd708d0756826c80511f3548;hb=1c7d6f776662b9ca383d056e6552ba00af8935e9;hpb=5510ccd7a97e851ead4ae288fbd67339aa4fc5ae diff --git a/file.c b/file.c index d320ba6..740b1d5 100644 --- a/file.c +++ b/file.c @@ -330,6 +330,8 @@ error: } uci_fixup_section(ctx, ctx->pctx->section); + if (!pctx->package && name) + uci_switch_config(ctx); if (package) *package = pctx->package; if (pctx->merge)