projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix a bug that prevented modifying empty config files
[project/uci.git]
/
file.c
diff --git
a/file.c
b/file.c
index
d320ba6
..
740b1d5
100644
(file)
--- 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)