Message ID | 1425741466-29090-3-git-send-email-yszhou4tech@gmail.com |
---|---|
State | Superseded |
Delegated to: | Felix Fietkau |
Headers | show |
diff --git a/lua/uci.c b/lua/uci.c index 8ace746..6ba7da0 100644 --- 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; }
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> --- lua/uci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)