summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/ltm.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/ltm.c')
-rw-r--r--apps/plugins/lua/ltm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugins/lua/ltm.c b/apps/plugins/lua/ltm.c
index c27f0f6fab..946028006f 100644
--- a/apps/plugins/lua/ltm.c
+++ b/apps/plugins/lua/ltm.c
@@ -36,10 +36,8 @@ void luaT_init (lua_State *L) {
36 "__concat", "__call" 36 "__concat", "__call"
37 }; 37 };
38 int i; 38 int i;
39 for (i=0; i<TM_N; i++) { 39 for (i=0; i<TM_N; i++) /* never collect these names */
40 G(L)->tmname[i] = luaS_new(L, luaT_eventname[i]); 40 G(L)->tmname[i] = luaS_newlloc(L, luaT_eventname[i], TSTR_INBIN | TSTR_FIXED);
41 luaS_fix(G(L)->tmname[i]); /* never collect these names */
42 }
43} 41}
44 42
45 43