diff --git a/src/modules/app_lua/app_lua_mod.c b/src/modules/app_lua/app_lua_mod.c index b4a44fab70d..ac536878c9c 100644 --- a/src/modules/app_lua/app_lua_mod.c +++ b/src/modules/app_lua/app_lua_mod.c @@ -673,12 +673,17 @@ static void app_lua_rpc_api_list(rpc_t* rpc, void* ctx) rpc->fault(ctx, 500, "Internal error root reply"); return; } + + /* count the number of exported functions */ n = 0; for(i=0; istruct_add(th, "d[", "msize", n,