aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/encodings.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-16 21:56:18 +0200
committerKim Alvefur <zash@zash.se>2014-09-16 21:56:18 +0200
commitbcab7a928a24ff7da693c6c8370ab18ae19284bd (patch)
tree7a2f8f679b522db52d967a34eb806b8f73ba59c4 /util-src/encodings.c
parentf41908a42c7e4f8397b52536e5e32c771b07a096 (diff)
downloadprosody-bcab7a928a24ff7da693c6c8370ab18ae19284bd.tar.gz
prosody-bcab7a928a24ff7da693c6c8370ab18ae19284bd.zip
util-src/*.c: Don't create globals when loaded
Diffstat (limited to 'util-src/encodings.c')
-rw-r--r--util-src/encodings.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/util-src/encodings.c b/util-src/encodings.c
index b9b6160a..3a074949 100644
--- a/util-src/encodings.c
+++ b/util-src/encodings.c
@@ -361,17 +361,12 @@ static const luaL_Reg Reg_idna[] =
/***************** end *****************/
-static const luaL_Reg Reg[] =
-{
- { NULL, NULL }
-};
-
LUALIB_API int luaopen_util_encodings(lua_State *L)
{
#ifdef USE_STRINGPREP_ICU
init_icu();
#endif
- luaL_register(L, "encodings", Reg);
+ lua_newtable(L);
lua_pushliteral(L, "base64");
lua_newtable(L);