summaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstrlib.c b/lstrlib.c
index c5cb136d..6020978d 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstrlib.c,v 1.128 2005/12/15 18:53:34 roberto Exp roberto $ 2** $Id: lstrlib.c,v 1.129 2005/12/21 12:59:43 roberto Exp roberto $
3** Standard library for string operations and pattern-matching 3** Standard library for string operations and pattern-matching
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -837,7 +837,7 @@ static const luaL_Reg strlib[] = {
837 837
838 838
839static void createmetatable (lua_State *L) { 839static void createmetatable (lua_State *L) {
840 lua_newtable(L); /* create metatable for strings */ 840 lua_createtable(L, 0, 1); /* create metatable for strings */
841 lua_pushliteral(L, ""); /* dummy string */ 841 lua_pushliteral(L, ""); /* dummy string */
842 lua_pushvalue(L, -2); 842 lua_pushvalue(L, -2);
843 lua_setmetatable(L, -2); /* set string metatable */ 843 lua_setmetatable(L, -2); /* set string metatable */