summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2001c72)
raw | patch | inline | side by side (parent: 2001c72)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 14 Aug 2016 13:08:40 +0000 (15:08 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 14 Aug 2016 13:08:40 +0000 (15:08 +0200) |
From the API docs:
Any array of luaL_Reg must end with a sentinel entry in which both name
and func are NULL.
Any array of luaL_Reg must end with a sentinel entry in which both name
and func are NULL.
src/lua.c | patch | blob | history |
diff --git a/src/lua.c b/src/lua.c
index 79f288beb7443d3f75fee2fb61419439e6abb0fc..3b8b3da075b56383ee4a02edd163a9e25f3220f7 100644 (file)
--- a/src/lua.c
+++ b/src/lua.c
{"log_warning", lua_cb_log_warning},
{"dispatch_values", lua_cb_dispatch_values},
{"register_read", lua_cb_register_read},
- {"register_write", lua_cb_register_write}};
+ {"register_write", lua_cb_register_write},
+ {NULL, NULL}
+};
static int open_collectd(lua_State *L) /* {{{ */
{