From: Felix Fietkau Date: Mon, 26 May 2008 13:53:07 +0000 (+0200) Subject: fix invocation of uci.commit(), uci.save() without arguments X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e137b2f3a43289d30c7c8ffcdc6e9602adc719f4;p=uci.git fix invocation of uci.commit(), uci.save() without arguments --- diff --git a/lua/uci.c b/lua/uci.c index ca6f1ad..988c9b9 100644 --- a/lua/uci.c +++ b/lua/uci.c @@ -392,6 +392,8 @@ uci_lua_package_cmd(lua_State *L, enum pkg_cmd cmd) s = lua_tostring(L, -1); lua_pop(L, 1); break; + case 0: + break; default: err: luaL_error(L, "Invalid argument count");