diff options
author | Luka Perkov <luka@openwrt.org> | 2014-01-26 17:33:36 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-01-28 22:20:30 +0000 |
commit | 4e82a1fabb87b5e3c948a792e16b0fac3702721b (patch) | |
tree | 9c28c19f05f3a60cf16d5fb542110b65599ab7da /ubusd.c | |
parent | b356773921a89b370f8ccb34c9ea5f21148115ea (diff) | |
download | ubus-4e82a1fabb87b5e3c948a792e16b0fac3702721b.tar.gz |
lua: allow methods with no arguments
In C it is possible to have methods without arguments (UBUS_METHOD_NOARG).
Enable support for the same calls in Lua too.
This commit also fixes segfault which can be caused by passing non-table type
where table is expected. The lua_gettablelen() function is called after we have
made sure we are dealing with a table in the first place.
Signed-off-by: Luka Perkov <luka@openwrt.org>
Diffstat (limited to 'ubusd.c')
0 files changed, 0 insertions, 0 deletions