projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lua: restore return value of require('uci') to module table.
[project/uci.git]
/
lua
/
uci.c
diff --git
a/lua/uci.c
b/lua/uci.c
index
8ace746
..
6ba7da0
100644
(file)
--- a/
lua/uci.c
+++ b/
lua/uci.c
@@
-994,8
+994,9
@@
luaopen_uci(lua_State *L)
/* create module */
lua_newtable(L);
+ lua_pushvalue(L, -1);
luaL_setfuncs(L, uci, 0);
lua_setglobal(L, MODNAME);
- return
0
;
+ return
1
;
}