Software /
code /
prosody
Diff
util-src/encodings.c @ 6411:6c8f6364bc48
util-src/*.c: Don't create globals when loaded
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 16 Sep 2014 21:56:18 +0200 |
parent | 4302:bbb0bf0a09f5 |
child | 6412:0e94f89d0e62 |
line wrap: on
line diff
--- a/util-src/encodings.c Thu Sep 11 00:55:51 2014 +0200 +++ b/util-src/encodings.c Tue Sep 16 21:56:18 2014 +0200 @@ -361,17 +361,12 @@ /***************** 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);