From c57e98cd7debd8d8ea46159cbbf2eb7597544d4c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 16 Sep 2014 21:56:18 +0200 Subject: util-src/*.c: Don't create globals when loaded --- util-src/encodings.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'util-src/encodings.c') 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); -- cgit v1.2.3