projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
793be3e
)
fix uci.save() with cursors
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 27 Aug 2008 21:05:21 +0000
(23:05 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 27 Aug 2008 21:05:21 +0000
(23:05 +0200)
lua/uci.c
patch
|
blob
|
history
diff --git
a/lua/uci.c
b/lua/uci.c
index 5d8490c1fa35a5cd2dfb4c55356858ae2a87e116..50321fb6591fe5318fefc832645eb991c77c4913 100644
(file)
--- a/
lua/uci.c
+++ b/
lua/uci.c
@@
-506,7
+506,7
@@
uci_lua_package_cmd(lua_State *L, enum pkg_cmd cmd)
ctx = find_context(L, &offset);
nargs = lua_gettop(L);
- if ((cmd != CMD_REVERT) && (nargs > 1))
+ if ((cmd != CMD_REVERT) && (nargs
- offset
> 1))
goto err;
if (lookup_args(L, ctx, offset, &ptr, &s))