projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
extend delete command so it can delete list elemets using index
[project/uci.git]
/
delta.c
diff --git
a/delta.c
b/delta.c
index 0a24f31194a36ce3ee24f6e6461df76b7da6825f..111321cdb7d97f26c840a4b1c36d55f53589bd59 100644
(file)
--- a/
delta.c
+++ b/
delta.c
@@
-480,7
+480,7
@@
int uci_save(struct uci_context *ctx, struct uci_package *p)
if (e->name)
fprintf(f, ".%s", e->name);
- if (h->cmd == UCI_CMD_REMOVE)
+ if (h->cmd == UCI_CMD_REMOVE
&& !h->value
)
fprintf(f, "\n");
else
fprintf(f, "=%s\n", h->value);