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:
600ce9a
)
fix 4-arg uci.set()
author
Felix Fietkau
<nbd@pi.lan>
Sat, 23 Aug 2008 09:14:15 +0000
(11:14 +0200)
committer
Felix Fietkau
<nbd@pi.lan>
Sat, 23 Aug 2008 09:14:15 +0000
(11:14 +0200)
lua/uci.c
patch
|
blob
|
history
diff --git
a/lua/uci.c
b/lua/uci.c
index b64c91f2cadeac655170697b664addef69de179e..e833b8698499cb1a205972eba39ef2bd1f82db6b 100644
(file)
--- a/
lua/uci.c
+++ b/
lua/uci.c
@@
-119,6
+119,7
@@
lookup_args(lua_State *L, struct uci_ptr *ptr, char **buf)
goto error;
switch (n) {
+ case 4:
case 3:
ptr->option = luaL_checkstring(L, 3);
/* fall through */
@@
-133,6
+134,7
@@
lookup_args(lua_State *L, struct uci_ptr *ptr, char **buf)
goto error;
break;
default:
+ luaL_error(L, "invalid argument count");
goto error;
}