projects
/
oweals
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5510ccd
)
fix a bug that prevented modifying empty config files
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 12 Feb 2008 21:01:50 +0000
(22:01 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 12 Feb 2008 21:01:50 +0000
(22:01 +0100)
file.c
patch
|
blob
|
history
diff --git
a/file.c
b/file.c
index d320ba6c3cd66d49bd708d0756826c80511f3548..740b1d55bd0512133c721d28a77682ba8d4178b0 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)